add role teacher to application_policy, implement teacher into team_policy
This commit is contained in:
@ -4,6 +4,11 @@ class ApplicationPolicy
|
||||
end
|
||||
private :admin?
|
||||
|
||||
def teacher?
|
||||
@user.teacher?
|
||||
end
|
||||
private :teacher?
|
||||
|
||||
def everyone
|
||||
true
|
||||
end
|
||||
|
Reference in New Issue
Block a user