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