use member settings, remove show, tighter pundit
This commit is contained in:
@@ -30,7 +30,9 @@ class Member < ApplicationRecord
|
||||
end
|
||||
|
||||
def admin?
|
||||
email == "[email protected]"
|
||||
["[email protected]" , "[email protected]" ,
|
||||
"[email protected]" , "[email protected]",
|
||||
].include?(email)
|
||||
end
|
||||
alias :admin :admin?
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user