Add custommail perms to staff groups

This commit is contained in:
Martin Pépin 2017-09-09 15:55:22 +02:00
parent 29d288c567
commit 52aadc636b
6 changed files with 34 additions and 10 deletions

View file

@ -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
View file

@ -0,0 +1 @@
secret_example.py