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(still image): User without permission can draw a region #1372

Conversation

domsteinbach
Copy link
Contributor

and press the replace image button
resolves DEV-3200

Copy link

linear bot commented Jan 23, 2024

@@ -23,6 +23,7 @@
[currentTab]="selectedTabLabel"
[parentResource]="incomingResource ? incomingResource.res : resource.res"
[activateRegion]="selectedRegion"
[adminPermissions]="isAdmin$ | async"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need to add an input adminPermission if you use the admin selector. You can add it straight to the component ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no equivalent selector yet as far as I can see (it is not sysadmin, it is sysadmin or project admin/member of the current project). So I went for a short streamlined fix reusing what is already there instead of refactoring and implementing new stuff as well.

@domsteinbach domsteinbach self-assigned this Jan 23, 2024
@domsteinbach domsteinbach marked this pull request as ready for review January 23, 2024 15:16
@domsteinbach domsteinbach merged commit 7da5827 into main Jan 24, 2024
13 checks passed
@domsteinbach domsteinbach deleted the feature/dev-3200-unknown-user-can-add-a-region-but-not-save-it branch January 24, 2024 11:04
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