New admin section.

This commit is contained in:
Mike Cao committed 2025-07-08 18:40:47 -07:00
1 parent b78ff3b477
commit ce1f6c3618
44 files changed
+515 -157

No files matched your search

+4
View File
@@ -288,6 +288,10 @@ export async function canCreateTeamWebsite({ user }: Auth, teamId: string) {
return teamUser && hasPermission(teamUser.role, PERMISSIONS.websiteCreate);
}
export async function canViewAllTeams({ user }: Auth) {
return user.isAdmin;
}
export async function canCreateUser({ user }: Auth) {
return user.isAdmin;
}