aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static/themes/_global/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/Resources/static/themes/_global/index.js')
-rw-r--r--app/Resources/static/themes/_global/index.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/Resources/static/themes/_global/index.js b/app/Resources/static/themes/_global/index.js
index 00410754..3fdcaa3d 100644
--- a/app/Resources/static/themes/_global/index.js
+++ b/app/Resources/static/themes/_global/index.js
@@ -28,6 +28,11 @@ $(document).ready(() => {
28 element: document.querySelector('article'), 28 element: document.querySelector('article'),
29 }); 29 });
30 30
31 const authorization = {
32 permits() { return true; },
33 };
34 app.registry.registerUtility(authorization, 'authorizationPolicy');
35
31 const x = JSON.parse($('#annotationroutes').html()); 36 const x = JSON.parse($('#annotationroutes').html());
32 app.include(annotator.storage.http, x); 37 app.include(annotator.storage.http, x);
33 38