]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - app/Resources/static/themes/_global/index.js
Fix delete annotation when username is defined
[github/wallabag/wallabag.git] / app / Resources / static / themes / _global / index.js
index 00410754a244209c8b07bfa3dabb4152825626a2..3fdcaa3d078b0525e1df27f5a0c55b534621b968 100644 (file)
@@ -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);