diff --git a/web/src/components/settings/nav.tsx b/web/src/components/settings/nav.tsx index b7bbe78..9d3cb76 100644 --- a/web/src/components/settings/nav.tsx +++ b/web/src/components/settings/nav.tsx @@ -10,9 +10,18 @@ import { LuSearch, LuSettings, LuTag, + LuUsers, } from 'react-icons/lu'; +import { useHasPolicy } from '@/api/policy'; + +export function isTruthy(value?: T | undefined | null | false): value is T { + return !!value; +} + export const SettingsNav = () => { + const { ok: hasUsersPermissions } = useHasPolicy('user', '', 'write'); + return (