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
04fde33f
Commit
04fde33f
authored
Jul 01, 2022
by
Andrey Vertiprahov
Browse files
release-22.1:Backport!6426
parent
5f6fe851
Changes
2
Hide whitespace changes
Inline
Side-by-side
services/grafanads/paths/managedobject.py
View file @
04fde33f
...
...
@@ -50,7 +50,7 @@ class ManagedObjectJsonDS(JsonDSAPI):
obj
and
model_id
==
"sa.ManagedObject"
and
not
user
.
is_superuser
and
obj
.
administrative_domain
not
in
UserAccess
.
get_domains
(
user
)
and
obj
.
administrative_domain
.
id
not
in
UserAccess
.
get_domains
(
user
)
):
raise
HTTPException
(
status_code
=
404
,
detail
=
"Not Access to requested device"
)
return
obj
.
bi_id
if
obj
else
None
...
...
services/web/apps/inv/resourcegroup/views.py
View file @
04fde33f
...
...
@@ -38,7 +38,7 @@ class ResourceGroupApplication(ExtDocApplication):
menu
=
[
_
(
"Resource Groups"
)]
model
=
ResourceGroup
glyph
=
"object-group"
query_fields
=
[
"name"
]
query_fields
=
[
"name"
,
"description"
]
query_condition
=
"icontains"
@
staticmethod
...
...
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