This commit is contained in:
Gabriel Rosa
2022-11-01 15:31:45 -03:00
parent a8f94a2d53
commit c029e286b5
3 changed files with 14 additions and 17 deletions
+1 -4
View File
@@ -37,14 +37,11 @@ import {
@Controller('catalog')
@Authenticated()
@AuthenticateCondition((req, user) => {
if (req.path.includes('/manage_permissions/')) return true;
if (req.path.includes('/manage-permissions')) return true;
let action;
switch (req.method) {
case 'POST':
action = 'CREATE';
break;
case 'PUT':
action = 'UPDATE';
break;