12 lines
357 B
Python
12 lines
357 B
Python
from __future__ import absolute_import, unicode_literals
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from mayan.apps.permissions import PermissionNamespace
|
|
|
|
namespace = PermissionNamespace(name='events', label=_('Events'))
|
|
|
|
permission_events_view = namespace.add_permission(
|
|
name='events_view', label=_('Access the events of an object')
|
|
)
|