aboutsummaryrefslogtreecommitdiff
path: root/src/api/utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/utils')
-rw-r--r--src/api/utils/Util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api/utils/Util.js b/src/api/utils/Util.js
index 7f6dd22..91ab663 100644
--- a/src/api/utils/Util.js
+++ b/src/api/utils/Util.js
@@ -210,7 +210,7 @@ class Util {
if (req.headers.token) {
const user = await db.table('users').where({ apiKey: req.headers.token }).first();
if (!user || !user.enabled) return false;
- return true;
+ return user;
}
if (!req.headers.authorization) return false;