use member settings, remove show, tighter pundit

This commit is contained in:
Torsten
2023-09-01 15:22:24 +03:00
parent 973ede68b2
commit 55cade0df5
6 changed files with 37 additions and 65 deletions

View File

@ -30,7 +30,9 @@ class Member < ApplicationRecord
end
def admin?
email == "torsten@villataika.fi"
["torsten@villataika.fi" , "info@hubfeenix.fi" ,
"hannaholma@gmail.com" , "maijanposteja@gmail.com",
].include?(email)
end
alias :admin :admin?
end