]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: Proper error handling in module status guard
authorNizamudeen A <nia@redhat.com>
Mon, 25 Oct 2021 07:25:35 +0000 (12:55 +0530)
committerNizamudeen A <nia@redhat.com>
Mon, 25 Oct 2021 07:25:35 +0000 (12:55 +0530)
commitdc80f26a50a972c71ca45c09f808ed5434f3a085
tree4f3128c1c6655a4ccbe6c27aa798017e8442225c
parented9d0b441738e5d5fee0b1394a629b504365ab69
mgr/dashboard: Proper error handling in module status guard

I've recently introduced a check that verifies if the orch_backend we need for a feature matches the orch_backend of the cluster. But to verify this I need to call configOpt API and some user's don't have the permission to access it. So it'll show this Access Denied page.

Fixes: https://tracker.ceph.com/issues/53021
Signed-off-by: Nizamudeen A <nia@redhat.com>
src/pybind/mgr/dashboard/frontend/src/app/shared/services/module-status-guard.service.spec.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/services/module-status-guard.service.ts