mirror of https://github.com/veops/cmdb.git
feat(api): only the role cmdb_admin can modify the CIType group (#280)
This commit is contained in:
parent
91c49b690f
commit
d525e1ec54
|
@ -105,6 +105,7 @@ class CITypeGroupView(APIView):
|
||||||
|
|
||||||
return self.jsonify(group.to_dict())
|
return self.jsonify(group.to_dict())
|
||||||
|
|
||||||
|
@role_required(RoleEnum.CONFIG)
|
||||||
@args_validate(CITypeGroupManager.cls)
|
@args_validate(CITypeGroupManager.cls)
|
||||||
def put(self, gid=None):
|
def put(self, gid=None):
|
||||||
if "/order" in request.url:
|
if "/order" in request.url:
|
||||||
|
@ -506,3 +507,4 @@ class CITypeFilterPermissionView(APIView):
|
||||||
@auth_with_app_token
|
@auth_with_app_token
|
||||||
def get(self, type_id):
|
def get(self, type_id):
|
||||||
return self.jsonify(CIFilterPermsCRUD().get(type_id))
|
return self.jsonify(CIFilterPermsCRUD().get(type_id))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue