Compare commits

...

2 commits

Author SHA1 Message Date
92bbc4b618 Update actions/checkout action to v6
Some checks failed
/ Ansible Lint (push) Failing after 2m42s
/ Ansible Lint (pull_request) Failing after 2m41s
2026-01-13 01:30:40 +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

@ -10,7 +10,7 @@ jobs:
name: Ansible Lint
runs-on: docker
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
- name: Install pip
run: |
apt update

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()