Skip to content

Commit

Permalink
Merge pull request #1054 from MTES-MCT/issue/2220-correctif
Browse files Browse the repository at this point in the history
#patch: (2220) Désactivation temporaire d'une validation d'accès
  • Loading branch information
superfeedboy authored Nov 21, 2024
2 parents b8b3442 + 042da6c commit 2f723f6
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ const ERROR_RESPONSES = {
};

export default async (req, res, next) => {
if (!can(req.user).do('update', 'shantytown').on(req.body)) {
// DESACTIVATION TEMPORAIRE DE LA VERIFICATION D'ACCES
/*if (!can(req.user).do('update', 'shantytown').on(req.body)) {
return res.status(403).send({
user_message: 'Vous n\'avez pas les droits suffisants pour mettre à jour les données du site.',
});
}
}*/

if (req.files?.length > 0 && !can(req.user).do('access', 'shantytown_justice').on(req.body)) {
return res.status(403).send({
Expand Down

0 comments on commit 2f723f6

Please sign in to comment.