Add role create and edit events
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
16
mayan/apps/permissions/events.py
Normal file
16
mayan/apps/permissions/events.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
from mayan.apps.events import EventTypeNamespace
|
||||
|
||||
namespace = EventTypeNamespace(
|
||||
label=_('Permissions'), name='permissions'
|
||||
)
|
||||
|
||||
event_role_created = namespace.add_event_type(
|
||||
label=_('Role created'), name='role_created'
|
||||
)
|
||||
event_role_edited = namespace.add_event_type(
|
||||
label=_('Role edited'), name='role_edited'
|
||||
)
|
||||
Reference in New Issue
Block a user