diff --git a/src/components/UserList/index.tsx b/src/components/UserList/index.tsx index a264ee5097..e056fd2448 100644 --- a/src/components/UserList/index.tsx +++ b/src/components/UserList/index.tsx @@ -101,7 +101,7 @@ const UserList: React.FC = () => { }); const [showBulkEditModal, setShowBulkEditModal] = useState(false); const [selectedUsers, setSelectedUsers] = useState([]); - const { user: currentUser } = useUser(); + const { user: currentUser, hasPermission: currentHasPermission } = useUser(); useEffect(() => { const filterString = window.localStorage.getItem('ul-filter-settings'); @@ -549,11 +549,19 @@ const UserList: React.FC = () => { - - - {user.requestCount} - - + {user.id === currentUser?.id || + currentHasPermission( + [Permission.MANAGE_REQUESTS, Permission.REQUEST_VIEW], + { type: 'or' } + ) ? ( + + + {user.requestCount} + + + ) : ( + user.requestCount + )} {user.userType === UserType.PLEX ? (