Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

288 B
Raw Blame
import { useAuth } from "@editor/auth/UseSession";

/** Guests cannot load or run policies, including browser-side classification. */
export function usePoliciesEnabled(): boolean {
  const { user, loading, isAnonymous } = useAuth();
  return !loading && Boolean(user) && !isAnonymous;
}