mirror of
https://github.com/umami-software/umami.git
synced 2025-12-06 01:18:00 +01:00
Fixed share page issue.
This commit is contained in:
parent
fc879bbb7d
commit
2290be7ca4
5 changed files with 13 additions and 16 deletions
|
|
@ -29,7 +29,7 @@ export const useAuth = createMiddleware(async (req, res, next) => {
|
|||
const token = await getAuthToken(req);
|
||||
const shareToken = await getShareToken(req);
|
||||
|
||||
if (!token) {
|
||||
if (!token && !shareToken) {
|
||||
return unauthorized(res);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue