PMCORE-4204

This commit is contained in:
Julio Cesar Laura Avendaño
2023-03-24 17:55:53 +00:00
parent 0506805783
commit 10839b0b84
21 changed files with 192 additions and 45 deletions

View File

@@ -1,10 +1,11 @@
<?php
use ProcessMaker\Exception\RBACException;
/**
* Controller Class
* Implementing MVC Pattern
*
* @author Erik Amaru Ortiz <erik@colosa.com, aortiz.erik@gmail.com>
* @package gulliver.system
* @access private
*/
@@ -129,6 +130,8 @@ class Controller
if ($this->responseType == 'json') {
print G::json_encode($result);
}
} catch (RBACException $e) {
throw $e;
} catch (Exception $e) {
$result = new StdClass();
if ($this->responseType != 'json') {