Updates for cloud mode.

This commit is contained in:
Mike Cao committed 2025-09-04 20:27:42 -07:00
1 parent dc1736458b
commit f40e1b44f3
51 files changed
+251 -173

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import { PERMISSIONS } from '@/lib/constants';
import { getTeamUser } from '@/queries';
import { hasPermission } from '@/lib/auth';
const cloudMode = !!process.env.CLOUD_MODE;
const cloudMode = !!process.env.CLOUD_URL;
export async function canViewTeam({ user }: Auth, teamId: string) {
if (user.isAdmin) {
+1 -1
View File
@@ -3,7 +3,7 @@ import { PERMISSIONS } from '@/lib/constants';
import { hasPermission } from '@/lib/auth';
import { getTeamUser, getWebsite } from '@/queries';
const cloudMode = !!process.env.CLOUD_MODE;
const cloudMode = !!process.env.CLOUD_URL;
export async function canViewWebsite({ user, shareToken }: Auth, websiteId: string) {
if (user?.isAdmin) {