mirror of
https://github.com/veops/cmdb.git
synced 2025-08-26 15:00:39 +08:00
pref(api): import and export of CIType templates
pref(api): import and export of CIType templates
This commit is contained in:
@@ -143,11 +143,14 @@ class CIFilterPermsCRUD(DBMixin):
|
||||
first=True, to_dict=False)
|
||||
|
||||
if obj is not None:
|
||||
resource = None
|
||||
if current_app.config.get('USE_ACL'):
|
||||
ACLManager().del_resource(str(obj.id), ResourceTypeEnum.CI_FILTER)
|
||||
resource = ACLManager().del_resource(str(obj.id), ResourceTypeEnum.CI_FILTER)
|
||||
|
||||
obj.soft_delete()
|
||||
|
||||
return resource
|
||||
|
||||
|
||||
def has_perm_for_ci(arg_name, resource_type, perm, callback=None, app=None):
|
||||
def decorator_has_perm(func):
|
||||
|
Reference in New Issue
Block a user