Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
noc
noc
Commits
76ddcd3f
Commit
76ddcd3f
authored
Jun 27, 2022
by
MaksimSmile13
Committed by
Andrey Vertiprahov
Jun 27, 2022
Browse files
release-22.1:Backport!6418
parent
3d4fca0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/grafanads/paths/managedobject.py
View file @
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
mo
.
administrative_domain
.
id
not
in
set
(
UserAccess
.
get_domains
(
user
)
):
raise
HTTPException
(
status_code
=
404
,
detail
=
"ManagedObject not Permission"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment