feat : Admin can unlocked users
feat : admin can update and create users.
This commit is contained in:
@@ -13,7 +13,6 @@ function checkAdmin (req,res,next){
|
||||
const token = authHeader.split(' ')[1];
|
||||
try {
|
||||
const payload = verifyToken(token);
|
||||
// console.log("hi",payload);
|
||||
if(payload.customerNo && payload.role === 'admin'){
|
||||
req.admin = payload.customerNo;
|
||||
next();
|
||||
|
||||
Reference in New Issue
Block a user