From 69ac2b8ed93c907ea9f5d50fca641bc5a5e07e1a Mon Sep 17 00:00:00 2001 From: Chris Date: Sat, 14 Jan 2023 22:09:00 +1030 Subject: [PATCH] Remove redundant check --- src/controllers/user.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/controllers/user.js b/src/controllers/user.js index e6d94a09..24b99f6d 100644 --- a/src/controllers/user.js +++ b/src/controllers/user.js @@ -93,13 +93,6 @@ class UserController { }); } - if (!did || !contextName) { - return res.status(401).send({ - status: "fail", - message: "Permission denied" - }); - } - const databaseHash = Utils.generateDatabaseName(did, contextName, databaseName) let success;