aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/Resources/static
diff options
context:
space:
mode:
authorJérémy Benoist <j0k3r@users.noreply.github.com>2017-05-15 11:42:05 +0200
committerGitHub <noreply@github.com>2017-05-15 11:42:05 +0200
commitd168fff7a9aedb19db05a95a3264e548748126c1 (patch)
tree2dbfbe6ae421a463ce47ad73b12d29ac6b89eedd /app/Resources/static
parentef204e45b04e1526eec17ae1e413a3b60404ab61 (diff)
parent60c522899bcfd3aef1a486922e0a9aeb549c0fc8 (diff)
downloadwallabag-d168fff7a9aedb19db05a95a3264e548748126c1.tar.gz
wallabag-d168fff7a9aedb19db05a95a3264e548748126c1.tar.zst
wallabag-d168fff7a9aedb19db05a95a3264e548748126c1.zip
Merge pull request #3120 from aaa2000/fix-delete-annotation-user
Fix delete annotation when username is defined
Diffstat (limited to 'app/Resources/static')
-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