Project

General

Profile

Development #8143

Implement role delegations

Added by Benjamin Dauvergne over 7 years ago. Updated 11 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
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

Related to Publik - Project management #7815: Système de délégationNouveau10 July 2015

Actions

History

#1

Updated by Benjamin Dauvergne over 7 years ago

#2

Updated by Benjamin Dauvergne almost 7 years ago

  • Due date changed from 01 October 2015 to 29 January 2016
#3

Updated by Benjamin Dauvergne almost 7 years ago

  • Due date changed from 29 January 2016 to 30 April 2016
#4

Updated by Benjamin Dauvergne over 6 years ago

  • Due date deleted (30 April 2016)
#5

Updated by Benjamin Dauvergne 11 months ago

  • Assignee deleted (Benjamin Dauvergne)

Also available in: Atom PDF