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
@ -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
Loading…
x
Reference in New Issue
Block a user