Fix isAdmin check.
This commit is contained in:
1 parent
df84a16b95
commit
84375a582e
5 files changed
+9
-7
No files matched your search
+1
-2
@@ -49,8 +49,7 @@ export async function allowQuery(req, type) {
|
||||
const { id } = req.query;
|
||||
|
||||
const {
|
||||
user: { id: userId },
|
||||
isAdmin,
|
||||
user: { id: userId, isAdmin },
|
||||
shareToken,
|
||||
} = req.auth;
|
||||
|
||||
|
||||
Reference in new issue
Block a user