mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-05 06:14:59 +00:00
[CRUD] check that action exists before inserting them in edit and view template
This commit is contained in:
@@ -93,4 +93,10 @@ class Resolver
|
||||
'_'.
|
||||
$action);
|
||||
}
|
||||
|
||||
public function hasAction($crudName, $action)
|
||||
{
|
||||
return \array_key_exists($action,
|
||||
$this->crudConfig[$crudName]['actions']);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user