Files
codeocean/app/policies/external_user_policy.rb

18 lines
249 B
Ruby

class ExternalUserPolicy < AdminOnlyPolicy
def index?
admin? || teacher?
end
def show?
admin? || teacher_in_study_group?
end
def statistics?
admin? || teacher_in_study_group?
end
def tag_statistics?
admin?
end
end