hides the admin checkboxes in annotator when editing an existing annotation

This commit is contained in:
kikito
2015-12-18 16:31:30 +01:00
parent 4e97687c81
commit 756c07c180

View File

@@ -5,6 +5,6 @@ class Annotation < ActiveRecord::Base
belongs_to :user
def permissions
{ update: [user_id], delete: [user_id] }
{ update: [user_id], delete: [user_id], admin: [] }
end
end