]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix roles page for roles without policies 55516/head
authorNizamudeen A <nia@redhat.com>
Tue, 27 Feb 2024 07:18:56 +0000 (12:48 +0530)
committerAfreen <afreen23.git@gmail.com>
Mon, 4 Mar 2024 09:16:24 +0000 (14:46 +0530)
commitac65bbcf06e99ecb3807f8add88f557b628d91b3
treea59fa640ce541ed9bfd380ca39db6e069deedbf9
parentf7cf5c69f0e9a87ae616d550129c28b9e917209e
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