| @@ 215-218 (lines=4) @@ | ||
| 212 | if (!class_exists($modelName)) { |
|
| 213 | return []; |
|
| 214 | } |
|
| 215 | if (!$this->checkAccess()) { |
|
| 216 | $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
|
| 217 | return []; |
|
| 218 | } |
|
| 219 | $modelName = $this->modelName; |
|
| 220 | $queryParams = []; |
|
| 221 | if (empty($params['all'])) { |
|
| @@ 492-495 (lines=4) @@ | ||
| 489 | if (!class_exists($modelName)) { |
|
| 490 | return []; |
|
| 491 | } |
|
| 492 | if (!$this->checkAccess()) { |
|
| 493 | $this->drawError('you not have access to "' . $this->modelName . '" manager with name: "' . $this->managerName . '"'); |
|
| 494 | return []; |
|
| 495 | } |
|
| 496 | if (!empty($params['limit'])) { |
|
| 497 | $this->limit = (int) $params['limit']; |
|
| 498 | } |
|