Ensure system auditors/admins can see all roles

Partial fix for #2744
This commit is contained in:
Akita Noek 2016-07-05 14:01:46 -04:00
parent 6f015e77c9
commit e818daa74f

View File

@ -75,7 +75,7 @@ def check_singleton(func):
if user in sys_admin or user in sys_audit:
if len(args) == 2:
return args[1]
return user.roles.all()
return Roles.objects.all()
return func(*args, **kwargs)
return wrapper