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

Merge branch 'noc-1846' into 'master'

noc/noc#1846 Add description to ResourceGroup Search field.

See merge request noc/noc!6426

(cherry picked from commit 14a4eca4)

236b60ce Add description to ResourceGroup Search field.
parent 5f6fe851
......@@ -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
......
......@@ -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
......
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