Files
codeocean/app/policies/file_template_policy.rb

16 lines
173 B
Ruby

class FileTemplatePolicy < AdminOnlyPolicy
def index?
admin? || teacher?
end
def show?
admin? || teacher?
end
def by_file_type?
everyone
end
end