mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-27 10:21:49 -05:00
Merge pull request #1204 from AlanCoding/org_members_team
allow org members to see teams in org
This commit is contained in:
@@ -57,9 +57,9 @@ def test_get_roles_list_user(organization, inventory, team, get, user):
|
||||
assert organization.admin_role.id in role_hash
|
||||
assert organization.member_role.id in role_hash
|
||||
assert custom_role.id in role_hash
|
||||
assert team.member_role.id in role_hash
|
||||
|
||||
assert inventory.admin_role.id not in role_hash
|
||||
assert team.member_role.id not in role_hash
|
||||
|
||||
|
||||
@pytest.mark.django_db
|
||||
@@ -150,7 +150,7 @@ def test_user_view_other_user_roles(organization, inventory, team, get, alice, b
|
||||
assert custom_role.id not in role_hash # doesn't show up in the user roles list, not an explicit grant
|
||||
assert Role.singleton(ROLE_SINGLETON_SYSTEM_ADMINISTRATOR).id not in role_hash
|
||||
assert inventory.admin_role.id not in role_hash
|
||||
assert team.member_role.id not in role_hash # alice can't see this
|
||||
assert team.member_role.id in role_hash # alice can see team in her org
|
||||
|
||||
# again but this time alice is part of the team, and should be able to see the team role
|
||||
team.member_role.members.add(alice)
|
||||
|
||||
Reference in New Issue
Block a user