mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-16 20:49:08 +00:00
Changed delete description
This commit is contained in:
@@ -50,8 +50,13 @@ const catalogPermissions = PERMISSIONS_GROUPS.CATALOG.permissions;
|
||||
action = 'UPDATE';
|
||||
break;
|
||||
|
||||
case 'DELETE':
|
||||
if (req.path.includes('/comment')) action = 'UPDATE';
|
||||
else action = req.method;
|
||||
break;
|
||||
|
||||
default:
|
||||
action = req.method as 'GET' | 'DELETE';
|
||||
action = req.method as 'GET';
|
||||
}
|
||||
|
||||
return user.permissions.includes(
|
||||
|
||||
Reference in New Issue
Block a user