Allow staff role to access Projects Admin
cgen-64b82ac5d40a41c181fb417ca75b43ed
This commit is contained in:
parent
774a68d892
commit
45a48b4898
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ export default function ProjectsAdmin() {
|
||||||
const isOwner = Boolean(
|
const isOwner = Boolean(
|
||||||
user?.email?.toLowerCase() === "mrpiglr@gmail.com" ||
|
user?.email?.toLowerCase() === "mrpiglr@gmail.com" ||
|
||||||
(roles || []).some((r) =>
|
(roles || []).some((r) =>
|
||||||
["owner", "admin", "founder"].includes(String(r).toLowerCase()),
|
["owner", "admin", "founder", "staff"].includes(String(r).toLowerCase()),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
const [list, setList] = useState<any[]>([]);
|
const [list, setList] = useState<any[]>([]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue