Project

General

Profile

Development #8143

Implement role delegations

Added by Benjamin Dauvergne almost 4 years ago. Updated about 3 years ago.

Status:
Nouveau
Priority:
Normal
Category:
-
Target version:
Start date:
31 Aug 2015
Due date:
% Done:

0%

Patch proposed:
No
Planning:
No

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

Related to Publik - Project management #7815: Système de délégation Nouveau 10 Jul 2015

History

#1 Updated by Benjamin Dauvergne almost 4 years ago

#2 Updated by Benjamin Dauvergne over 3 years ago

  • Due date changed from 01 Oct 2015 to 29 Jan 2016

#3 Updated by Benjamin Dauvergne over 3 years ago

  • Due date changed from 29 Jan 2016 to 30 Apr 2016

#4 Updated by Benjamin Dauvergne about 3 years ago

  • Due date deleted (30 Apr 2016)

Also available in: Atom PDF