Skip to content

Commit

Permalink
fixing users page
Browse files Browse the repository at this point in the history
  • Loading branch information
Ark2307 committed Jan 3, 2025
1 parent 8439148 commit 3e37032
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const Users = () => {
const [roleHierarchy, setRoleHierarchy] = useState([])
const [allCollections, setAllCollections] = useState([])
let rbacAccess = func.checkForRbacFeatureBasic();
let rbacAccessAdvanced = func.checkForRbacFeature()

const collectionsMap = PersistStore(state => state.collectionsMap)

Expand Down Expand Up @@ -319,7 +320,7 @@ const Users = () => {
{
content: (
<HorizontalStack gap={4}>
{ (role === 'ADMIN' || userRole !== 'ADMIN' || !rbacAccess) ? undefined :
{ (role === 'ADMIN' || userRole !== 'ADMIN' || !rbacAccessAdvanced) ? undefined :
<ResourceListModal
title={"Collection list"}
activatorPlaceaholder={`${(usersCollection[id] || []).length} collections accessible`}
Expand Down

0 comments on commit 3e37032

Please sign in to comment.