mirror of
https://github.com/umami-software/umami.git
synced 2026-02-07 22:27:16 +01:00
Updates for cloud mode.
Some checks failed
Node.js CI / build (postgresql, 18.18) (push) Has been cancelled
Some checks failed
Node.js CI / build (postgresql, 18.18) (push) Has been cancelled
This commit is contained in:
parent
dc1736458b
commit
f40e1b44f3
51 changed files with 251 additions and 173 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue