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

Repository edit: respect object permissions #3628

Merged
merged 1 commit into from
Apr 23, 2023
Merged

Conversation

himdel
Copy link
Collaborator

@himdel himdel commented Apr 19, 2023

Issue: AAH-2305

Repository edit - when logged in as unprivileged user, with no global repository permissions, but yes object permissions to a specific repository,
you can see the repository edit button (since #3602),
but clicking it leads to the unauthorized page ... fixing.

Previously the permission check for rendering the edit form would happen before loading the repository, so we only used the global permissions .. postponing check until item has been loaded.

20230419161516
20230419161528

previously the permission check for rendering the edit form would happen before loading the repository,
so we only used the global permissions .. postponing check until item has been loaded

Issue: AAH-2305
@github-actions github-actions bot added backport-4.6 This PR should be backported to stable-4.6 (2.3) backport-4.7 This PR should be backported to stable-4.7 (2.4) labels Apr 19, 2023
@himdel himdel removed the backport-4.6 This PR should be backported to stable-4.6 (2.3) label Apr 19, 2023
@himdel himdel merged commit 9610edb into ansible:master Apr 23, 2023
@himdel himdel deleted the 2305-2 branch April 23, 2023 22:40
@patchback

This comment was marked as outdated.

himdel added a commit to himdel/ansible-hub-ui that referenced this pull request Apr 24, 2023
previously the permission check for rendering the edit form would happen before loading the repository,
so we only used the global permissions .. postponing check until item has been loaded

Issue: AAH-2305
(cherry picked from commit 9610edb)
himdel added a commit that referenced this pull request Apr 26, 2023
previously the permission check for rendering the edit form would happen before loading the repository,
so we only used the global permissions .. postponing check until item has been loaded

Issue: AAH-2305
(cherry picked from commit 9610edb)
@github-actions github-actions bot added the backported-4.7 This PR has been backported to stable-4.7 (2.4) label Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-4.7 This PR should be backported to stable-4.7 (2.4) backported-4.7 This PR has been backported to stable-4.7 (2.4)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant