check team permissions if attaching user roles

This commit is contained in:
AlanCoding
2016-06-13 12:34:10 -04:00
parent b485b85076
commit c631761091
3 changed files with 4 additions and 7 deletions

View File

@@ -30,4 +30,3 @@ def test_role_access_attach(rando, inventory):
inventory.read_role.members.add(rando)
access = RoleAccess(rando)
assert not access.can_attach(inventory.admin_role, rando, 'members', None)