user, group, & permissions fix
This commit is contained in:
parent
f2731d3fe6
commit
5d4ecb7f9e
7 changed files with 100 additions and 90 deletions
|
@ -1,35 +1,9 @@
|
|||
## To list all permissions, run:
|
||||
##
|
||||
## docker-compose run --rm --entrypoint /bin/bash netbox
|
||||
## $ ./manage.py migrate
|
||||
## $ ./manage.py shell
|
||||
## > from django.contrib.auth.models import Permission
|
||||
## > print('\n'.join([p.codename for p in Permission.objects.all()]))
|
||||
##
|
||||
## Permission lists support wildcards. See the examples below.
|
||||
##
|
||||
## Examples:
|
||||
|
||||
# applications:
|
||||
# - name: applications
|
||||
# users:
|
||||
# - technical_user
|
||||
# readers:
|
||||
# - technical_user
|
||||
# - name: readers
|
||||
# users:
|
||||
# - reader
|
||||
# writers:
|
||||
# - reader
|
||||
# - name: writers
|
||||
# users:
|
||||
# - writer
|
||||
# permissions:
|
||||
# - delete_device
|
||||
# - delete_virtualmachine
|
||||
# - add_*
|
||||
# - change_*
|
||||
# vm_managers:
|
||||
# permissions:
|
||||
# - '*_virtualmachine'
|
||||
# device_managers:
|
||||
# permissions:
|
||||
# - '*device*'
|
||||
# creators:
|
||||
# permissions:
|
||||
# - add_*
|
||||
# - writer
|
||||
|
|
22
initializers/object_permissions.yml
Normal file
22
initializers/object_permissions.yml
Normal file
|
@ -0,0 +1,22 @@
|
|||
#- name: all.ro
|
||||
# description: 'Read Only for All Objects'
|
||||
# enabled: true
|
||||
# # object_types: all
|
||||
# groups:
|
||||
# - applications
|
||||
# - readers
|
||||
# actions:
|
||||
# - view
|
||||
#- name: all.rw
|
||||
# description: 'Read/Write for All Objects'
|
||||
# enabled: true
|
||||
# # object_types: all
|
||||
# groups:
|
||||
# - writers
|
||||
# users:
|
||||
# - jdoe
|
||||
# actions:
|
||||
# - add
|
||||
# - change
|
||||
# - delete
|
||||
# - view
|
|
@ -1,23 +1,14 @@
|
|||
## To list all permissions, run:
|
||||
##
|
||||
## docker-compose run --rm --entrypoint /bin/bash netbox
|
||||
## $ ./manage.py migrate
|
||||
## $ ./manage.py shell
|
||||
## > from django.contrib.auth.models import Permission
|
||||
## > print('\n'.join([p.codename for p in Permission.objects.all()]))
|
||||
##
|
||||
## Permission lists support wildcards. See the examples below.
|
||||
##
|
||||
## Examples:
|
||||
|
||||
# technical_user:
|
||||
# api_token: 0123456789technicaluser789abcdef01234567 # must be looooong!
|
||||
# reader:
|
||||
# password: reader
|
||||
# writer:
|
||||
# password: writer
|
||||
# permissions:
|
||||
# - delete_device
|
||||
# - delete_virtualmachine
|
||||
# - add_*
|
||||
# - change_*
|
||||
#- username: technical_user
|
||||
# api_token: 0123456789technicaluser789abcdef01234567 # must be looooong!
|
||||
#- username: reader
|
||||
# password: reader
|
||||
#- username: writer
|
||||
# password: writer
|
||||
#- username: jdoe
|
||||
# first_name: John
|
||||
# last_name: Doe
|
||||
# api_token: 0123456789jdoe789abcdef01234567jdoe
|
||||
# is_active: True
|
||||
# is_superuser: False
|
||||
# is_staff: False
|
||||
# email: john.doe@example.com
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue