mirror of
https://github.com/wallabag/wallabag.git
synced 2025-02-20 12:36:18 +00:00
Fix delete annotation when username is defined
When an user set his name in "Config" > "User Information", he can't delete or update an annotation Fix #2382
This commit is contained in:
parent
06568b15bb
commit
60c522899b
3 changed files with 7 additions and 2 deletions
|
@ -28,6 +28,11 @@ $(document).ready(() => {
|
||||||
element: document.querySelector('article'),
|
element: document.querySelector('article'),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const authorization = {
|
||||||
|
permits() { return true; },
|
||||||
|
};
|
||||||
|
app.registry.registerUtility(authorization, 'authorizationPolicy');
|
||||||
|
|
||||||
const x = JSON.parse($('#annotationroutes').html());
|
const x = JSON.parse($('#annotationroutes').html());
|
||||||
app.include(annotator.storage.http, x);
|
app.include(annotator.storage.http, x);
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue