[CRUD] check that action exists before inserting them in edit and view template

This commit is contained in:
2020-04-21 12:33:36 +02:00
parent d4b498e2be
commit 1e06393a7d
5 changed files with 25 additions and 2 deletions

View File

@@ -93,4 +93,10 @@ class Resolver
'_'.
$action);
}
public function hasAction($crudName, $action)
{
return \array_key_exists($action,
$this->crudConfig[$crudName]['actions']);
}
}