Compare commits

...

2 commits

Author SHA1 Message Date
e9cc3f9006 Update docker.io/library/mariadb Docker tag to v12
Some checks failed
/ Ansible Lint (push) Failing after 2m29s
/ Ansible Lint (pull_request) Failing after 2m32s
2026-01-13 01:30:41 +00:00
951ec7ebcd
netbox(role): fix oidc integration by no longer using is_staff
Some checks failed
/ Ansible Lint (push) Failing after 1m56s
is_staff got removed in 4.5.0.
See: https://github.com/netbox-community/netbox/releases/tag/v4.5.0
2026-01-13 02:25:06 +01:00
2 changed files with 1 additions and 3 deletions

View file

@ -3,7 +3,7 @@
services:
database:
image: docker.io/library/mariadb:11
image: docker.io/library/mariadb:12
environment:
- "MARIADB_DATABASE=wordpress"
- "MARIADB_ROOT_PASSWORD={{ secret__mariadb_root_password }}"

View file

@ -40,7 +40,6 @@ def remove_groups(response, user, backend, *args, **kwargs):
def set_roles(response, user, backend, *args, **kwargs):
# Remove Roles temporary
user.is_superuser = False
user.is_staff = False
try:
groups = response['groups']
except KeyError:
@ -51,5 +50,4 @@ def set_roles(response, user, backend, *args, **kwargs):
# Set roles is role (superuser or staff) is in groups
user.is_superuser = True if 'superusers' in groups else False
user.is_staff = True if 'staff' in groups else False
user.save()