This commit is contained in:
Ubuntu 2025-08-04 09:16:36 +05:30
parent 62f2dbff4a
commit b9e4e84968

View File

@ -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" });
}