mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-29 11:23:09 +01:00
ba3176f140
... and moved some documentatory comments to the beginning of the file.
36 lines
711 B
YAML
36 lines
711 B
YAML
## 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:
|
|
# users:
|
|
# - technical_user
|
|
# readers:
|
|
# users:
|
|
# - reader
|
|
# writers:
|
|
# users:
|
|
# - writer
|
|
# permissions:
|
|
# - delete_device
|
|
# - delete_virtualmachine
|
|
# - add_*
|
|
# - change_*
|
|
# vm_managers:
|
|
# permissions:
|
|
# - '*_virtualmachine'
|
|
# device_managers:
|
|
# permissions:
|
|
# - '*device*'
|
|
# creators:
|
|
# permissions:
|
|
# - add_*
|