|
@@ -45,7 +45,7 @@ discard block |
|
|
block discarded – undo |
|
45
|
45
|
|
|
46
|
46
|
protected function ControllerForm($controller, string $method, array $values) |
|
47
|
47
|
{ |
|
48
|
|
- $this->checkRole(); |
|
|
48
|
+ $this->checkRole(); |
|
49
|
49
|
$method = ($method !== 'method') ? $method : $this->getData()['POST']['role']; |
|
50
|
50
|
$data = (array_key_exists('data',$values)) ? json_decode($values['data'], true) : []; |
|
51
|
51
|
|
|
@@ -154,7 +154,7 @@ discard block |
|
|
block discarded – undo |
|
154
|
154
|
} |
|
155
|
155
|
|
|
156
|
156
|
$this->currentRoute = null; |
|
157
|
|
- throw new Exception('Page not found.',404); |
|
|
157
|
+ throw new Exception('Page not found.',404); |
|
158
|
158
|
} |
|
159
|
159
|
|
|
160
|
160
|
protected function loadByName(string $routName) |
Please login to merge, or discard this patch.