forked from rohit/spurrin-backend
ack role
This commit is contained in:
parent
62f2dbff4a
commit
b9e4e84968
@ -294,7 +294,7 @@ exports.addReportText = async (req, res) => {
|
|||||||
exports.updateChecked = async (req,res) =>{
|
exports.updateChecked = async (req,res) =>{
|
||||||
try {
|
try {
|
||||||
const app_user_id = req.params.id;
|
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" });
|
return res.status(403).json({ error: "Unauthorized to acknowledge" });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user