Update permission fixtures
This commit is contained in:
parent
f833f1c46c
commit
bd41560f45
6 changed files with 478 additions and 273 deletions
|
|
@ -10,7 +10,7 @@ def save_user_note(instance, raw, **_kwargs):
|
|||
# When provisionning data, do not try to autocreate
|
||||
return
|
||||
|
||||
if instance.profile.registration_valid and instance.is_active:
|
||||
if (instance.is_superuser or instance.profile.registration_valid) and instance.is_active:
|
||||
# Create note only when the registration is validated
|
||||
from note.models import NoteUser
|
||||
NoteUser.objects.get_or_create(user=instance)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue