From b9e4e8496850f1ceaee0dbc352c9eaceba238bf1 Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Mon, 4 Aug 2025 09:16:36 +0530 Subject: [PATCH] ack role --- src/controllers/appUserController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/appUserController.js b/src/controllers/appUserController.js index 10001c3..f30c9b8 100644 --- a/src/controllers/appUserController.js +++ b/src/controllers/appUserController.js @@ -294,7 +294,7 @@ exports.addReportText = async (req, res) => { exports.updateChecked = async (req,res) =>{ try { const app_user_id = req.params.id; - if (!["Admin", 8].includes(req.user.role)) { + if (!["Admin","Superadmin",7, 8].includes(req.user.role)) { return res.status(403).json({ error: "Unauthorized to acknowledge" }); }