perf: remove application permission

This commit is contained in:
ibuler
2022-08-16 16:05:08 +08:00
parent 34c8cfc20a
commit b8f8c2a264
16 changed files with 50 additions and 328 deletions

View File

@@ -18,7 +18,7 @@ from assets.models import (
CommandFilter, CommandFilterRule, GatheredUser
)
from applications.models import Application
from perms.models import AssetPermission, ApplicationPermission
from perms.models import AssetPermission
from orgs.utils import current_org, tmp_to_root_org
from common.utils import get_logger
@@ -30,7 +30,7 @@ logger = get_logger(__file__)
org_related_models = [
User, UserGroup, Asset, Label, Domain, Gateway, Node, SystemUser, Label,
CommandFilter, CommandFilterRule, GatheredUser,
AssetPermission, ApplicationPermission,
AssetPermission,
Application,
]