Rethink permissions in CodeOcean for usage in schools and adopt views
This commit is contained in:
@ -1,9 +1,4 @@
|
||||
class ExercisePolicy < AdminOrAuthorPolicy
|
||||
def author?
|
||||
@user == @record.author
|
||||
end
|
||||
private :author?
|
||||
|
||||
def batch_update?
|
||||
admin?
|
||||
end
|
||||
|
Reference in New Issue
Block a user