From 14da0fb7271f4020a6e264732443f530b60e534c Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 29 Nov 2025 22:02:04 +0530 Subject: [PATCH] Bud fixed - Super Admin restrictions --- app/controllers/user.controller.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/controllers/user.controller.js b/app/controllers/user.controller.js index c676334..cecfb57 100644 --- a/app/controllers/user.controller.js +++ b/app/controllers/user.controller.js @@ -60,6 +60,12 @@ exports.updateUser = async (req, res) => { try { const { name, email,is_active } = req.body; + if (email === 'bhavinkumar.chandulal@fcsc.gov.ae') { + return res.status(403).json({ + status: "error", + message: "You cannot modify Super Admin data." + }); + } const [updated] = await User.update({ name, email, is_active}, { where: { id: req.params.id } }); if (updated) {