mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 23:27:12 +01:00
Fix API check.
This commit is contained in:
parent
4ab71c42a6
commit
81789d6723
2 changed files with 8 additions and 8 deletions
|
|
@ -9,7 +9,7 @@ export default async (req, res) => {
|
|||
const { id } = req.query;
|
||||
const user_id = +id;
|
||||
|
||||
if (is_admin) {
|
||||
if (!is_admin) {
|
||||
return unauthorized(res);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue