hides the admin checkboxes in annotator

This commit is contained in:
kikito
2015-12-17 16:46:46 +01:00
parent 44047004e6
commit 85b26f960d

View File

@@ -6,11 +6,14 @@ App.Annotatable =
ann_id = $this.data("annotatable-id") ann_id = $this.data("annotatable-id")
app = new annotator.App() app = new annotator.App()
.include(annotator.ui.main, { element: this })
.include(annotator.storage.http, { prefix: "", urls: { search: "/annotations/search" } })
.include -> .include ->
beforeAnnotationCreated: (ann) -> beforeAnnotationCreated: (ann) ->
ann[ann_type + "_id"] = ann_id ann[ann_type + "_id"] = ann_id
ann.permissions = ann.permissions || {}
ann.permissions.admin = []
.include(annotator.ui.main, { element: this })
.include(annotator.storage.http, { prefix: "", urls: { search: "/annotations/search" } })
app.start().then -> app.start().then ->
app.ident.identity = $('html').data('current-user-id') app.ident.identity = $('html').data('current-user-id')