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:
Akita Noek
2016-08-11 11:00:02 -04:00
parent f81d6afe83
commit 3d218d5fca
6 changed files with 1 additions and 141 deletions

View File

@@ -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