mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 16:17:13 +01:00
Fix non-admin dashboard.
This commit is contained in:
parent
e4eefc6025
commit
c932dc2810
2 changed files with 2 additions and 2 deletions
|
|
@ -10,7 +10,7 @@ export default async (req, res) => {
|
|||
const userId = +user_id;
|
||||
|
||||
if (req.method === 'GET') {
|
||||
if (userId !== current_user_id && !is_admin) {
|
||||
if (userId && userId !== current_user_id && !is_admin) {
|
||||
return unauthorized(res);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue