Valentin Deniaud
3dab8ff21a
a2_rbac: move signal handlers from django_rbac ( #69902 )
2022-10-19 14:53:34 +02:00
Emmanuel Cazenave
ffaf242c36
start APIClient model ( #66985 )
2022-08-17 16:24:52 +02:00
Benjamin Dauvergne
477bc0cb7e
rbac: add direct parameter to parents and children methods ( #62013 )
...
It will limit the parents/children roles returned to those with a direct inheritance relation.
2022-05-30 13:39:54 +02:00
Benjamin Dauvergne
c004a56673
misc: implement soft-delete on RoleParenting ( #57500 )
2022-03-25 11:14:05 +01:00
Benjamin Dauvergne
a8994cfc62
django_rbac: new update_transitive_closure algorithm ( #57500 )
2022-03-25 11:14:05 +01:00
Valentin Deniaud
19c5e7b181
misc: fix try-except-raise pylint error ( #56982 )
2021-09-24 11:30:14 +02:00
Valentin Deniaud
4751846fed
misc: remove six module usage ( #52503 )
2021-03-30 15:06:49 +02:00
Valentin Deniaud
86d946adcd
misc: apply isort ( #52457 )
2021-03-30 13:59:53 +02:00
Valentin Deniaud
4bb33d3d3c
misc: apply black ( #52457 )
2021-03-30 11:32:55 +02:00
Benjamin Dauvergne
9fbbf0519a
spring cleaning ( #32934 )
...
* reorganize views and forms
* add copyright headers to all .py files
* fix all style errors reported by flake8
2019-05-14 16:19:25 +02:00
Paul Marillonnet
59d5f2a951
python3: use django.utils.six.moves.reduce ( #31165 )
...
as reduce is not a builtin anymore
2019-04-01 18:14:34 +02:00
Emmanuel Cazenave
135b81c6fc
use explicit in lookup ( #25557 )
2018-08-02 17:56:51 +02:00
Emmanuel Cazenave
d024517025
use explicit in lookup ( #25502 )
...
Delete unused function using implicit in lookup.
2018-07-31 13:48:47 +02:00
Benjamin Dauvergne
49bb78b38e
django_rbac: make migration 0003 useless ( fixes #17979 )
...
By casting boolean to int before aggregating them with MAX we work
around the absence of a MAX aggregate for the boolean type in postgres.
2017-08-11 15:53:01 +02:00
Benjamin Dauvergne
e32a3e5d8f
django_rbac: add command and manager methods to cleanup permissions and roles ( fixes #11589 )
2016-06-27 16:52:44 +02:00
Benjamin Dauvergne
d77b9d629e
django_rbac: fix Role.all_members() ( fixes #11592 )
...
Also some trivial PEP8 reformatting.
2016-06-27 16:52:44 +02:00
Benjamin Dauvergne
98fa0481f3
django_rbac: fix bugs in permissions' natural key methods ( #11461 )
2016-06-27 16:52:43 +02:00
Benjamin Dauvergne
f43b75476f
django_rbac: rename Permission.role related manager to .roles ( #7799 )
2015-07-07 17:28:38 +02:00
Benjamin Dauvergne
c482c50757
django_rbac: fix hiding of exceptions by decorator defer_update_transitive_closure ( fixes #7790 )
2015-07-07 17:16:07 +02:00
Benjamin Dauvergne
00d66833e3
django_rbac: implement a context manager to defer running the update_transitive_closure() when working on roles relations
...
It should help make the post_migrate handler of a2_rbac faster when there
is a lot of organizational units.
2015-05-31 23:18:10 +02:00
Benjamin Dauvergne
c030a45f6d
django_rbac: add an RBAC engine ( #6994 )
...
- swappable role model supporting role graph with cycles
- swappable role parenting model
- swappable permission model
- swappable organizational unit model allowing to have scopes on permissions and objects
- authorization backend based on role membership
- helpers to filter querysets by the permissions users have on them
2015-05-18 21:46:34 +02:00