Add support for blocking the changing of password for specify users.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
12
mayan/apps/user_management/handlers.py
Normal file
12
mayan/apps/user_management/handlers.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from django.apps import apps
|
||||
|
||||
|
||||
def handler_initialize_new_user_options(sender, instance, **kwargs):
|
||||
UserOptions = apps.get_model(
|
||||
app_label='user_management', model_name='UserOptions'
|
||||
)
|
||||
|
||||
if kwargs['created']:
|
||||
UserOptions.objects.create(user=instance)
|
||||
Reference in New Issue
Block a user