Make statistics teacher-safe

This commit is contained in:
Maximilian Grundke
2016-02-24 14:23:15 +01:00
parent 4ebaee8931
commit 0a5301a595
3 changed files with 7 additions and 2 deletions

View File

@ -1,5 +1,5 @@
class ExternalUserPolicy < AdminOnlyPolicy
def statistics?
admin? || author? || team_member?
admin?
end
end