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
+3 -1
View File
@@ -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