use member settings, remove show, tighter pundit
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user