mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 13:17:19 +01:00
Fixed auth check.
This commit is contained in:
parent
8904b7b4ed
commit
b8cb47a476
1 changed files with 2 additions and 2 deletions
|
|
@ -80,8 +80,8 @@ export async function canViewWebsite({ user, shareToken }: Auth, websiteId: stri
|
|||
|
||||
const website = await loadWebsite(websiteId);
|
||||
|
||||
if (website.userId) {
|
||||
return user.id === website.userId;
|
||||
if (user.id === website.userId) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return !!(await findTeamWebsiteByUserId(websiteId, user.id));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue