[Update] Merge fromo dev to lina

This commit is contained in:
Bai
2020-05-11 14:03:24 +08:00
41 changed files with 1944 additions and 1513 deletions

View File

@@ -1,14 +1,7 @@
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()

View File

@@ -302,7 +302,6 @@ class AssetPermissionUtil(AssetPermissionUtilCacheMixin):
continue
ancestors = self.full_tree.ancestors(
child.identifier, with_self=False, deep=True,
with_assets=False,
)
# print("Get ancestors: {}".format(len(ancestors)))
if not ancestors: