Granting will also check if the permission has been authorized to the object class using ModelPermission. Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
17 lines
323 B
Python
17 lines
323 B
Python
from __future__ import unicode_literals
|
|
|
|
|
|
class ACLsBaseException(Exception):
|
|
"""
|
|
Base exception for the acls app
|
|
"""
|
|
pass
|
|
|
|
|
|
class PermissionNotValidForClass(ACLsBaseException):
|
|
"""
|
|
The permission is not one that has been registered for a class using the
|
|
ModelPermission class.
|
|
"""
|
|
pass
|