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

Rewrite more access logic in terms of permissions instead of roles #15453

Merged
merged 5 commits into from
Aug 21, 2024

Conversation

AlanCoding
Copy link
Member

SUMMARY

We have these "old" patterns in the ORM based on the old RBAC models, and then we have "new" patterns, those coming from DAB RBAC.

These needed to be migrated anyway, but I believe I may have hit an issue in ansible/django-ansible-base#562 where we checked for the "member_role" specifically, but multiple roles can convey the "member" permission in the new parlance.

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

Copy link

sonarcloud bot commented Aug 21, 2024

@AlanCoding AlanCoding merged commit af537b5 into ansible:devel Aug 21, 2024
22 checks passed
fosterseth pushed a commit to fosterseth/awx that referenced this pull request Aug 30, 2024
…nsible#15453) (ansible#6661)

* Rewrite more access logic in terms of permissions instead of roles

* Cut down supported logic because that would not work anyway

* Remove methods not needed anymore

* Create managed roles in test before delegating permissions
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.

2 participants