Allow staff role to access Projects Admin

cgen-64b82ac5d40a41c181fb417ca75b43ed
This commit is contained in:
Builder.io 2025-10-19 05:18:37 +00:00
parent 774a68d892
commit 45a48b4898

View file

@ -29,7 +29,7 @@ export default function ProjectsAdmin() {
const isOwner = Boolean(
user?.email?.toLowerCase() === "mrpiglr@gmail.com" ||
(roles || []).some((r) =>
["owner", "admin", "founder"].includes(String(r).toLowerCase()),
["owner", "admin", "founder", "staff"].includes(String(r).toLowerCase()),
),
);
const [list, setList] = useState<any[]>([]);