Projet

Général

Profil

Development #8143

Implement role delegations

Ajouté par Benjamin Dauvergne il y a plus de 8 ans. Mis à jour il y a environ 2 ans.

Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
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

Lié à Publik - Project management #7815: Système de délégationNouveau10 juillet 2015

Actions

Historique

#1

Mis à jour par Benjamin Dauvergne il y a plus de 8 ans

#2

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

  • Echéance changé de 01 octobre 2015 à 29 janvier 2016
#3

Mis à jour par Benjamin Dauvergne il y a environ 8 ans

  • Echéance changé de 29 janvier 2016 à 30 avril 2016
#4

Mis à jour par Benjamin Dauvergne il y a plus de 7 ans

  • Echéance 30 avril 2016 supprimé
#5

Mis à jour par Benjamin Dauvergne il y a environ 2 ans

  • Assigné à Benjamin Dauvergne supprimé

Formats disponibles : Atom PDF