Closed rufuspollock closed 12 years ago
Config consists of a dictionary:
AUTHORIZATION = { {object-type}: { anonymous: ['create', 'read'], user: ['create', 'read'], owner: ['read', 'update', 'delete'] }
Code:
role = getRole(user, object); return AUTHORIZATION[object.object_type].findIndex(action) != -1
Implementation
Config consists of a dictionary:
Code:
Issues