Valentin Deniaud
58dd0ae0be
a2_rbac: move managers from django_rbac ( #70894 )
2022-11-14 12:00:15 +01:00
Valentin Deniaud
cb9df4fbb2
a2_rbac: migrate existing operations to new model ( #69902 )
2022-10-19 14:53:34 +02:00
Valentin Deniaud
3dab8ff21a
a2_rbac: move signal handlers from django_rbac ( #69902 )
2022-10-19 14:53:34 +02:00
Benjamin Dauvergne
626ab8aab7
a2_rbac: add helper method to build permissions ( #70152 )
2022-10-18 11:45:56 +02:00
Corentin Sechet
c393adcdd5
misc: make minimum password strength configurable in ous ( #68745 )
2022-10-07 08:48:58 +02:00
Valentin Deniaud
66c3da6577
a2_rbac: move abstract model code from django_rbac ( #58696 )
2022-10-05 10:35:28 +02:00
Frédéric Péters
497994bc5b
misc: do not export deleted role parenting relations ( #67489 )
2022-07-19 16:40:40 +02:00
Benjamin Dauvergne
df780cafeb
rbac: add helper methods to add/remove permissions from roles ( #62013 )
2022-05-30 13:39:54 +02:00
Benjamin Dauvergne
cedbbf4514
rbac: add slug and name as implicit natural keys ( #62013 )
...
If the natural key is not precise enough, MultipleObjectReturned will be
raised preventing mismatches. But it will help using the API for simple
cases where the name is globally unique.
2022-05-30 13:39:54 +02:00
Paul Marillonnet
2c58c32a1a
discard deprecated unicode-aware i18n utils ( #64305 )
2022-05-13 09:49:23 +02:00
Benjamin Dauvergne
a3dd7bf98c
misc: drop use of custom partial index on Role and Permission ( #63690 )
2022-04-07 18:44:23 +02:00
Serghei Mihai
10366ac244
misc: add logo and text color for service and OU ( #47406 )
2022-04-05 11:49:14 +02:00
Thomas NOËL
ed0576548f
a2_rbac: change unused accounts delays, to have nicer first message ( #62174 )
2022-02-25 11:58:28 +01:00
Benjamin Dauvergne
c75d48967e
misc: move cache decorators in utils ( #61735 )
2022-02-21 10:49:52 +01:00
Paul Marillonnet
c557ec4db8
a2_rbac: provide default values for unused account thresholds ( #60463 )
2022-02-16 10:52:11 +01:00
Emmanuel Cazenave
51cf94a801
a2_rbac: add home_url field on OrganizationalUnit ( #60349 )
2022-01-28 13:08:10 +01:00
Valentin Deniaud
a05c136ee5
manager: simplify data-url in tables ( #60678 )
2022-01-17 17:02:47 +01:00
Valentin Deniaud
eabdce19ef
misc: add get_absolute_url method to Role and User ( #57955 )
2021-12-13 09:49:53 +01:00
Valentin Deniaud
5ea73341ef
a2_rbac: use a TextField to store role name ( #59122 )
2021-12-13 09:49:26 +01:00
Valentin Deniaud
7b1727f599
a2_rbac: disable required attributes check at OU level ( #58546 )
2021-12-13 09:47:16 +01:00
Paul Marillonnet
50e48b760a
discard django_rbac generic getters in main a2 code ( #58695 )
2021-11-26 10:04:48 +01:00
Valentin Deniaud
e0b86a7691
misc: fix unused-variable pylint error ( #56982 )
2021-09-24 11:30:14 +02:00
Valentin Deniaud
3e5fc8a898
misc: fix invalid-str-returned pylint error ( #56982 )
2021-09-24 11:21:17 +02:00
Valentin Deniaud
2c5acd16bb
misc: fix ungrouped-imports pylint error ( #56982 )
2021-09-24 11:21:17 +02:00
Valentin Deniaud
f24096f8b8
misc: concatenate strings when possible ( #56007 )
2021-08-10 11:02:45 +02:00
Valentin Deniaud
7bc0fcadff
misc: apply pyupgrade ( #55519 )
2021-07-12 12:03:44 +02:00
Paul Marillonnet
2928bbf704
a2_rbac: fix inconsistencies in OUs' user password reset option ( #46650 )
2021-07-09 09:58:07 +02:00
Benjamin Dauvergne
a265c6267e
misc: remove unicode prefixed strings ( #53714 )
2021-05-04 11:32:24 +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
12fd246aeb
django_rbac: replace Operation.name by a registry ( #49142 )
...
There is no need to store the operation label in the database.
2020-12-15 12:13:07 +01:00
Paul Marillonnet
7c4f725bfc
a2_rbac: do not break unicity when get-or-creating admin role ( #42179 )
2020-10-23 10:35:52 +02:00
Benjamin Dauvergne
13bb51ecef
misc: modify strings for translation ( #47773 )
2020-10-17 08:46:20 +02:00
Nicolas Roche
c636b16424
a2_rbac: add manage_authorizations permission to custom_user ( #46182 )
2020-09-29 11:55:18 +02:00
Valentin Deniaud
3e197664ae
a2_rbac: change self admin permission to manage_members ( #42086 )
2020-08-21 15:54:53 +02:00
Paul Marillonnet
5db2ca57e0
misc: remove deprecated py2-compatibility decorator ( #45228 )
2020-07-28 21:43:01 +02:00
Valentin Deniaud
0d8ea42ad2
manager: forbid changing role members when synced from ldap ( #37187 )
2020-06-02 12:04:02 +02:00
Paul Marillonnet
bfbb22bd44
dj2.2: cascade on delete ( #41238 )
2020-04-27 14:34:24 +02:00
Valentin Deniaud
599555f3cb
a2_rbac: add manage members permission for role admins ( #20513 )
2020-04-24 11:08:09 +02:00
Valentin Deniaud
5a8fbd9ef1
commands: per-OU unused user accounts cleaning policy ( #26909 )
2020-04-02 11:02:16 +02:00
Benjamin Dauvergne
beb8327f40
a2_rbac: add ROLE_ADMIN_RESTRICT_TO_OU_USERS setting ( fixes #35391 )
...
It limits visibility of role's administrators to users of the same OU as
the role administered.
2019-09-09 13:05:20 +02:00
Benjamin Dauvergne
43cb2f9c8c
a2_rbac: remove unused argument to Role.get_admin_role() ( #35391 )
2019-09-09 13:05:20 +02:00
Benjamin Dauvergne
4c9fcce47f
a2_rbac: validate uniqueness of Role.slug ( #35767 )
2019-09-09 13:04:48 +02:00
Benjamin Dauvergne
5732f219c5
a2_rbac: rename role's admin role on role's rename ( #34774 )
2019-08-16 19:42:17 +02:00
Benjamin Dauvergne
df6cebea45
manager: always check role's name uniqueness ( #33944 )
2019-07-04 13:09:43 +02:00
Valentin Deniaud
bd09473532
a2_rbac: fix RoleParenting.__str__ magic method ( #33328 )
2019-05-28 17:42:37 +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
43769fb2a7
python3: py2 unicode compatible __str__ magid methods ( #31184 )
2019-05-02 10:52:04 +02:00
Paul Marillonnet
cb10c41b0f
python3: remove deprecated unicode builtin ( #31151 )
2019-04-01 17:05:10 +02:00