Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(visibility of menu entries): Utilise proper editing permissions for enabling/disabling editing menu items #1129

Conversation

domsteinbach
Copy link
Contributor

resolves DEV-2279

@linear
Copy link

linear bot commented Jul 3, 2023

DEV-2279 Edit label button and form shouldn't be displayed (RV|KnownUser)

On the test server, project 0106 waldau-cinema, I found out that it is possible for a KnownUser to display the form Edit label in a resource viewer (resource of type StillImage in the example), even though the permissions are set to Restricted View. Hopefully, the API prevents the update action to be executed (403 error).

Example: https://admin.test.dasch.swiss/project/0GvaFuSORIqfYHxv6XcZaA/ontology/waldau-cinema/ImageOfSource

0c88cf24-53de-493c-9f9f-2dfc613d2e4f

@domsteinbach domsteinbach marked this pull request as ready for review July 5, 2023 10:27
@mdelez mdelez self-requested a review July 6, 2023 11:29
@mdelez mdelez merged commit a59e85e into main Jul 7, 2023
12 checks passed
@mdelez mdelez deleted the feature/dev-2279-edit-label-button-and-form-shouldnt-be-displayed-rvknownuser branch July 7, 2023 07:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants