#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere
TypeScript dockerhacktoberfestjavapdfpdf-converterpdf-editorpdf-manipulationpdf-mergerpdf-ocrpdf-toolspdf-web-appspdfmergerself-hosted
import { usePortalAdmin } from "@processor/hooks/usePortalAdmin";
/**
* Whether nav entries marked {@code requiresAdmin} appear. Those entries are gated on
* administering this instance, which is what self-hosted means by admin.
*
* <p>A seam because SaaS means something else by it: Supabase sessions carry no admin flag, so the
* same check there would hide billing from every cloud user while portal-saas' own billing gate
* still renders the page for them.
*/
export function useAdminNavVisible(): boolean {
return usePortalAdmin();
}