user policies
This commit is contained in:
@ -15,6 +15,12 @@ class User < ApplicationRecord
|
||||
save
|
||||
end
|
||||
|
||||
# TODO: move to mixin: UserRoles
|
||||
# define remaining helpers
|
||||
def admin?
|
||||
role == 'admin'
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def gen_reset_token
|
||||
|
Reference in New Issue
Block a user