cover testing of new 3.3 org roles for user security fix

This commit is contained in:
AlanCoding
2018-05-24 13:56:32 -04:00
parent 019a07f919
commit e04a07f56c
2 changed files with 4 additions and 7 deletions

View File

@@ -67,6 +67,7 @@ def test_org_user_role_attach(user, organization, inventory):
role_access = RoleAccess(admin)
assert not role_access.can_attach(organization.member_role, nonmember, 'members', None)
assert not role_access.can_attach(organization.notification_admin_role, nonmember, 'members', None)
assert not role_access.can_attach(organization.admin_role, nonmember, 'members', None)