mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-01 08:43:30 +02:00
18 lines
No EOL
626 B
Markdown
18 lines
No EOL
626 B
Markdown
# Django admin user roles
|
|
|
|
For our MVP, we create and maintain 2 admin roles:
|
|
Full access and CISA analyst. Both have the role `staff`.
|
|
Permissions on these roles are set through groups:
|
|
`full_access_group` and `cisa_analysts_group`. These
|
|
groups and the methods to create them are defined in
|
|
our `user_group` model and run in a migration.
|
|
|
|
For more details, refer to the [user group model](../../src/registrar/models/user_group.py).
|
|
|
|
## Editing group permissions through code
|
|
|
|
We can edit and deploy new group permissions by:
|
|
|
|
1. editing `user_group` then:
|
|
2. Duplicating migration `0036_create_groups`
|
|
and running migrations |