def addGroupPermission(group, obj, permission=PERMISSION_READ): Permissions.addPermission(group=group, object_type=ot.getObjectType(obj), object_id=obj.pk, permission=permission)
def addGroupPermission(group, obj, permission=PERMISSION_READ): Permissions.addPermission(group=group, object_type=ot.getObjectType(obj), object_id=obj.pk, permission=permission)
def addUserPermission(user, obj, permission=PERMISSION_READ): # Some permissions added to some object types needs at least READ_PERMISSION on parent Permissions.addPermission(user=user, object_type=ot.getObjectType(obj), object_id=obj.pk, permission=permission)
def addUserPermission(user, obj, permission=PERMISSION_READ): # Some permissions added to some object types needs at least READ_PERMISSION on parent Permissions.addPermission(user=user, object_type=ot.getObjectType(obj), object_id=obj.pk, permission=permission)