webknossos
webknossos copied to clipboard
Do not show locked banner if backend sends restrictions.allowUpdate=false
Context
When an annotation with othersMayEdit
turned on is shared publically and another user from a different organization opens the annotation a locked banner is shown. This might be confusing as the annotation is not locked but the user is not allowed to edit this annotation due to being from another organization (see #7923).
Expected Behavior
No logged banner should be rendered.
Current Behavior
A logged banner is rendered. See https://github.com/scalableminds/webknossos/pull/7923#issuecomment-2233712513.
Steps to Reproduce the bug
- [ ] Cannot reproduce the bug anymore / needs deeper investigation.
- Same as https://github.com/scalableminds/webknossos/pull/7923#issue-2411083446
Your Environment for bug
- Browser name and version: e.g. Chrome 39
- Operating System and version: e.g. Windows 10
- Version of WEBKNOSSOS (Release or Commit):
- [ ] Specific to long-running jobs (set
jobsEnabled=true
inapplication.conf
) - [ ] Specific to webknossos.org (set
isDemoInstance=true
inapplication.conf
)