Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
e_zombie
noc
Commits
4a6306d5
Commit
4a6306d5
authored
Jun 30, 2022
by
Andrey Vertiprahov
Browse files
noc/noc#1846
Add description to ResourceGroup Search field.
parent
84fd2705
Changes
2
Hide whitespace changes
Inline
Side-by-side
services/grafanads/paths/managedobject.py
View file @
4a6306d5
...
...
@@ -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 @
4a6306d5
...
...
@@ -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
.
Attach a 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