26 lines
631 B
Python
26 lines
631 B
Python
from __future__ import absolute_import
|
|
|
|
from django.utils.translation import ugettext_lazy as _
|
|
|
|
from smart_settings import LocalScope
|
|
|
|
from .icons import icon_permissions
|
|
from .links import role_list
|
|
|
|
name = 'permissions'
|
|
label = _(u'Permissions')
|
|
description = _(u'Handles the permissions in a project.')
|
|
icon = icon_permissions
|
|
dependencies = ['app_registry', 'smart_settings']
|
|
|
|
settings=[
|
|
{
|
|
'name': 'DEFAULT_ROLES',
|
|
'default': [],
|
|
'description': _(u'A list of existing roles that are automatically assigned to newly created users'),
|
|
'scopes': [LocalScope()]
|
|
}
|
|
]
|
|
|
|
setup_links=[role_list]
|