eeditiones / tei-publisher-app

The main TEI Publisher app
https://teipublisher.com
GNU General Public License v3.0
68 stars 33 forks source link

Permission denied for tei-demo user in the case of existing annotation samples #222

Open daliboris opened 7 months ago

daliboris commented 7 months ago

I used latest docker image of TEI Publisher 9.0.0.

I logged in as tei-demo user and tried add annotation to available texts in the Annotation Samples section. After saving the changes, the following error appears:

Ooops
Permission denied: you are not allowed to save annotations.

The problem is that the owner of the files under data/annotate collection is tei, not tei-demo.

A misunderstanding may arise from the fact that Annotation Samples are described as Another playground for annotating documents. and the user will expect to be able to play with existing sample files.

Workaround is logging in as tei user.

If the user is logged in as tei-demo user and uploads their own files to the Annotation Samples section the user can edit and save the files without any problems.