X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=app%2FResources%2Fstatic%2Fthemes%2F_global%2Findex.js;h=3fdcaa3d078b0525e1df27f5a0c55b534621b968;hb=60c522899bcfd3aef1a486922e0a9aeb549c0fc8;hp=00410754a244209c8b07bfa3dabb4152825626a2;hpb=06568b15bb9e9116fa4d4a42246e1b0e497bbf25;p=github%2Fwallabag%2Fwallabag.git 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(() => { element: document.querySelector('article'), }); + const authorization = { + permits() { return true; }, + }; + app.registry.registerUtility(authorization, 'authorizationPolicy'); + const x = JSON.parse($('#annotationroutes').html()); app.include(annotator.storage.http, x);