Commit ddc1fb8f authored by Andrey Vertiprahov's avatar Andrey Vertiprahov
Browse files

Merge branch 'cherry-pick-ea74fd55' into 'release-22.1'


See merge request !6419
parents 3d4fca0a 76ddcd3f
......@@ -65,7 +65,7 @@ class ManagedObjectJsonDS(JsonDSAPI):
mo: "ManagedObject" = ManagedObject.get_by_id(int(annotation.query))
if not mo:
raise HTTPException(status_code=404, detail="Managed Object Does Not Exists")
if not user.is_superuser and mo.administrative_domain not in set(
if not user.is_superuser and not in set(
raise HTTPException(status_code=404, detail="ManagedObject not Permission")
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment