This commit is contained in:
Akita Noek
2016-07-06 13:38:43 -04:00
parent b94902d970
commit b4810f6486

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 Roles.objects.all()
return Role.objects.all()
return func(*args, **kwargs)
return wrapper