Files
mayan-edms/mayan/apps/document_states/permissions.py
Roberto Rosario 36a51eeb73 Switch to full app paths
Instead of inserting the path of the apps into the Python app,
the apps are now referenced by their full import path.

This solves name clashes with external or native Python libraries.
Example: Mayan statistics app vs. Python new statistics library.

Every app reference is now prepended with 'mayan.apps'.

Existing config.yml files need to be updated manually.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
2019-04-05 02:02:57 -04:00

30 lines
1.1 KiB
Python

from __future__ import absolute_import, unicode_literals
from django.utils.translation import ugettext_lazy as _
from mayan.apps.permissions import PermissionNamespace
namespace = PermissionNamespace('document_states', _('Document workflows'))
permission_workflow_create = namespace.add_permission(
name='workflow_create', label=_('Create workflows')
)
permission_workflow_delete = namespace.add_permission(
name='workflow_delte', label=_('Delete workflows')
)
permission_workflow_edit = namespace.add_permission(
name='workflow_edit', label=_('Edit workflows')
)
permission_workflow_view = namespace.add_permission(
name='workflow_view', label=_('View workflows')
)
# Translators: This text refers to the permission to grant user the ability to
# 'transition workflows' from one state to another, to move the workflow
# forwards
permission_workflow_transition = namespace.add_permission(
name='workflow_transition', label=_('Transition workflows')
)
permission_workflow_tools = namespace.add_permission(
name='workflow_tools', label=_('Execute workflow tools')
)