Add custommail perms to staff groups
This commit is contained in:
parent
29d288c567
commit
52aadc636b
6 changed files with 34 additions and 10 deletions
|
@ -11,7 +11,11 @@ class COFConfig(AppConfig):
|
|||
|
||||
def setup_cof_perms(sender, apps, **kwargs):
|
||||
from cof.models import get_cof_assoc
|
||||
setup_assoc_perms(apps, get_cof_assoc, buro_of_apps=['gestion', 'cof'])
|
||||
setup_assoc_perms(
|
||||
apps, get_cof_assoc,
|
||||
buro_of_apps=['gestion', 'cof'],
|
||||
perms=["custommail.add_custommail", "custommail.change_custommail"]
|
||||
)
|
||||
|
||||
# Setup permissions of defaults groups of BDS association after Permission
|
||||
# instances have been created, i.e. after applying migrations.
|
||||
|
|
1
cof/settings/secret.py
Symbolic link
1
cof/settings/secret.py
Symbolic link
|
@ -0,0 +1 @@
|
|||
secret_example.py
|
Loading…
Add table
Add a link
Reference in a new issue