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 missing role membership when giving creator permissions #15058

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

AlanCoding
Copy link
Member

SUMMARY

Fixes a bug discovered by QE.

We sync role memberships only 1 way, if you use the old API then the new API is changed to reflect the permission setup. However, the same is not true the other way around (and may be un-representable) for memberships... it is for access in a weird nuance.

By using the new give_creator_permissions from the DAB library, this did not add the user in question to the memberships of the old role. It is valid to say that this fails to conform to the existing role API contract.

This needs a supporting DAB change ansible/django-ansible-base#253

ISSUE TYPE
  • Bug, Docs Fix or other nominal change
COMPONENT NAME
  • API

@AlanCoding
Copy link
Member Author

Checks will fail until supporting DAB change is merged.

@AlanCoding AlanCoding merged commit 9183dd2 into ansible:feature_dab_rbac Apr 3, 2024
14 of 21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants