]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: fix roles page for roles without policies 55826/head
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:02:17 +0000 (11:32 +0530)
commit0a14665de06e4afd37f9dee7d0842e184903f0cb
tree7d8cefe7c97a5aaa998a8963eaf30f2fdddf71a4
parentcc1396e6f221f3a94f5ff00e8fdbf53d84aece22
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