]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
mgr/dashboard: fix roles page for roles without policies
authorNizamudeen A <nia@redhat.com>
Tue, 27 Feb 2024 07:18:56 +0000 (12:48 +0530)
committerAfreen <afreen23.git@gmail.com>
Thu, 29 Feb 2024 06:05:19 +0000 (11:35 +0530)
commit04783547462a9a9c30b2a62e2beee08409a06afc
treeedd868605760f73b52bc0ecb5b933cd95e783f2b
parenta2082d99b0bb0ae2dbf69fde03826f58f57ff7da
mgr/dashboard: fix roles page for roles without policies

If there is no permission policies attached to a role, it fails the
UI with an exception.

Fixes: https://tracker.ceph.com/issues/64588
Signed-off-by: Nizamudeen A <nia@redhat.com>
(cherry picked from commit 5f3f31921c9f3ed909a94f287bfd4cc3f0987649)
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/crud-table/crud-table.component.ts
src/pybind/mgr/dashboard/services/rgw_client.py