mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-06 19:23:23 +02:00
Refactor groups and permissions: divide fixtures in 2 files, one for users and one for data, load groups in migrations (using methods defined in user_groups model), use hasperm in admin to test for 'superuser'
This commit is contained in:
parent
fd860998fb
commit
cd14eb2584
15 changed files with 667 additions and 559 deletions
|
@ -81,3 +81,8 @@ class User(AbstractUser):
|
|||
logger.warn(
|
||||
"Failed to retrieve invitation %s", invitation, exc_info=True
|
||||
)
|
||||
|
||||
class Meta:
|
||||
permissions = [
|
||||
("full_access_permission", "Full Access Permission"),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue