mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 21:18:13 +08:00
fix delete relation view
This commit is contained in:
@@ -131,6 +131,11 @@ class CITypeManager(object):
|
||||
|
||||
CITypeCache.clean(type_id)
|
||||
|
||||
if current_app.config.get("USE_ACL"):
|
||||
from api.lib.perm.acl.acl import ACLManager
|
||||
from api.lib.cmdb.const import ResourceTypeEnum, RoleEnum, PermEnum
|
||||
ACLManager().del_resource(ci_type.name, ResourceTypeEnum.CI)
|
||||
|
||||
|
||||
class CITypeGroupManager(object):
|
||||
@staticmethod
|
||||
|
@@ -192,4 +192,7 @@ class PreferenceManager(object):
|
||||
for existed in PreferenceRelationView.get_by(name=name, to_dict=False):
|
||||
existed.soft_delete()
|
||||
|
||||
if current_app.config.get("USE_ACL"):
|
||||
ACLManager().del_resource(name, ResourceTypeEnum.RELATION_VIEW)
|
||||
|
||||
return name
|
||||
|
Reference in New Issue
Block a user