diff --git a/frontend/public/components/RBAC/bindings.tsx b/frontend/public/components/RBAC/bindings.tsx index c547cde08d7..d58bc1b5dba 100644 --- a/frontend/public/components/RBAC/bindings.tsx +++ b/frontend/public/components/RBAC/bindings.tsx @@ -345,6 +345,11 @@ export const RoleBindingsPage: React.FCC = ({ }`, }) => { const { t } = useTranslation(); + const canListClusterRoleBindings = useAccessReview({ + group: ClusterRoleBindingModel.apiGroup, + resource: ClusterRoleBindingModel.plural, + verb: 'list', + }); const watchResources = React.useMemo( () => mock @@ -356,13 +361,15 @@ export const RoleBindingsPage: React.FCC = ({ namespace, isList: true, }, - ClusterRoleBinding: { - kind: 'ClusterRoleBinding', - namespaced: false, - isList: true, - }, + ...(canListClusterRoleBindings && { + ClusterRoleBinding: { + kind: 'ClusterRoleBinding', + namespaced: false, + isList: true, + }, + }), }, - [mock, namespace], + [canListClusterRoleBindings, mock, namespace], ); const resources = useK8sWatchResources(watchResources);