fix: 系统初始化时不必获取全部权限标识
This commit is contained in:
parent
f02008f6de
commit
7b34ddd70c
|
@ -12,10 +12,4 @@ class SystemConfig(AppConfig):
|
||||||
from server.settings import get_sysconfig
|
from server.settings import get_sysconfig
|
||||||
get_sysconfig(reload=True)
|
get_sysconfig(reload=True)
|
||||||
cache.set('cache_sysconfig_need_task', False, timeout=30)
|
cache.set('cache_sysconfig_need_task', False, timeout=30)
|
||||||
|
|
||||||
if cache.get('cache_alldperms_task', True):
|
|
||||||
from apps.utils.permission import get_alld_perms
|
|
||||||
get_alld_perms(update_cache=True)
|
|
||||||
cache.set('cache_alldperms_task', False, timeout=30)
|
|
||||||
|
|
||||||
return super().ready()
|
return super().ready()
|
||||||
|
|
Loading…
Reference in New Issue