mirror of https://github.com/jumpserver/jumpserver
15 lines
343 B
Python
15 lines
343 B
Python
from __future__ import unicode_literals
|
|
|
|
from django.conf import settings
|
|
from django.apps import AppConfig
|
|
|
|
|
|
class PermsConfig(AppConfig):
|
|
name = 'perms'
|
|
|
|
def ready(self):
|
|
from . import signals_handler
|
|
if not settings.XPACK_ENABLED:
|
|
settings.ASSETS_PERM_CACHE_ENABLE = False
|
|
return super().ready()
|