Développement #8143
Implement role delegations
Start date:
31 August 2015
Due date:
% Done:
0%
Estimated time:
Patch proposed:
No
Planning:
Description
- move members m2m field from abstract base class django_rbac.models.Role to authentic2.a2_rbac.models.Role, add comment to the abstract base stating that any child class must define such a relation
- add a through model names RoleMember to the members m2m field (see http://stackoverflow.com/questions/11466358/migrating-data-from-many-to-many-to-many-to-many-through-in-django for example
- add a "delegated" fk field to RoleMember targetting the RoleMember class
- add "since" and "until" datetime fields
- modify authentic2.custom_user.models.User.roles_and_parents() to only return roles which are active, i.e. for which since <= now <= until and (role_member.delegated is null or role_member.delegated.user.active is True)
- implement a role delegation panel in the account view
- list active delegation
- allow adding a delegation to another user limited to the same entity, with mandatory since and until dates
- allow deleting a delegation
- do not permit modification
Related issues
History
Updated by Benjamin Dauvergne over 9 years ago
- Related to Gestion de projet #7815: Système de délégation added
Updated by Benjamin Dauvergne about 9 years ago
- Due date changed from 01 October 2015 to 29 January 2016
Updated by Benjamin Dauvergne about 9 years ago
- Due date changed from 29 January 2016 to 30 April 2016