mirror of
https://github.com/ansible/awx.git
synced 2026-02-24 06:26:00 -03:30
Revert "Fix to ensure org auditors can see team credentials"
This reverts commit 5dcb0e57d80a3bb0553ca8194890a938257a6e93. New clarification on what the actual desired behavior of this whole system means this commit is trash, fixing in a much better way.
This commit is contained in:
@@ -113,23 +113,6 @@ def test_create_team_credential_by_team_member_xfail(post, team, alice, team_mem
|
||||
assert response.status_code == 403
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
def test_team_credential_visibility_by_org_admins(team, credential, organization, user):
|
||||
org_auditor = user('org_auditor')
|
||||
organization.auditor_role.members.add(org_auditor)
|
||||
assert org_auditor not in credential.read_role
|
||||
|
||||
team.member_role.children.add(credential.use_role)
|
||||
assert org_auditor in credential.read_role
|
||||
team.member_role.children.remove(credential.use_role)
|
||||
assert org_auditor not in credential.read_role
|
||||
|
||||
credential.use_role.parents.add(team.member_role)
|
||||
assert org_auditor in credential.read_role
|
||||
credential.use_role.parents.remove(team.member_role)
|
||||
assert org_auditor not in credential.read_role
|
||||
|
||||
|
||||
|
||||
#
|
||||
# organization credentials
|
||||
|
||||
Reference in New Issue
Block a user