Development #8143
Implement role delegations
Début:
31 août 2015
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
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
Demandes liées
Historique
Mis à jour par Benjamin Dauvergne il y a plus de 8 ans
- Lié à Project management #7815: Système de délégation ajouté
Mis à jour par Benjamin Dauvergne il y a environ 8 ans
- Echéance changé de 01 octobre 2015 à 29 janvier 2016
Mis à jour par Benjamin Dauvergne il y a environ 8 ans
- Echéance changé de 29 janvier 2016 à 30 avril 2016