mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-22 22:39:08 +00:00
WIP
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user