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:
adev 2017-05-14 11:38:02 +02:00
parent 06568b15bb
commit 60c522899b
3 changed files with 7 additions and 2 deletions

View 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);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long