Files
mayan-edms/mayan/apps/acls/apps.py
Roberto Rosario 070c3b648c Refactor acls app
2015-06-30 02:38:22 -04:00

20 lines
597 B
Python

from __future__ import unicode_literals
from django.utils.translation import ugettext_lazy as _
from common import MayanAppConfig, menu_object, menu_sidebar
from .links import link_acl_new, link_acl_delete, link_acl_permissions
from .models import AccessControlList
class ACLsApp(MayanAppConfig):
name = 'acls'
verbose_name = _('ACLs')
def ready(self):
super(ACLsApp, self).ready()
menu_object.bind_links(links=[link_acl_permissions, link_acl_delete], sources=[AccessControlList])
menu_sidebar.bind_links(links=[link_acl_new], sources=['acls:acl_list'])