Update website fetch and update.
This commit is contained in:
1 parent
05245ca316
commit
1075325ec5
5 files changed
+27
-59
No files matched your search
+1
-1
@@ -43,7 +43,7 @@ export function isValidToken(token, validation) {
|
||||
export async function allowQuery(req, type) {
|
||||
const { id } = req.query;
|
||||
|
||||
const { userId, isAdmin, shareToken } = req.auth ?? {};
|
||||
const { id: userId, isAdmin, shareToken } = req.auth ?? {};
|
||||
|
||||
if (isAdmin) {
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user