| @@ 339-341 (lines=3) @@ | ||
| 336 | if (!empty($this->form['options']['access']['apps']) && !in_array(\App::$cur->name, $this->form['options']['access']['apps'])) { |
|
| 337 | return false; |
|
| 338 | } |
|
| 339 | if (!empty($this->form['options']['access']['groups']) && in_array(\Users\User::$cur->group_id, $this->form['options']['access']['groups'])) { |
|
| 340 | return true; |
|
| 341 | } |
|
| 342 | if ($this->model && !empty($this->form['options']['access']['self']) && \Users\User::$cur->id == $this->model->user_id) { |
|
| 343 | return true; |
|
| 344 | } |
|
| @@ 903-905 (lines=3) @@ | ||
| 900 | return false; |
|
| 901 | } |
|
| 902 | ||
| 903 | if (!empty($this->managerOptions['options']['access']['apps']) && !in_array(\App::$cur->name, $this->managerOptions['options']['access']['apps'])) { |
|
| 904 | return false; |
|
| 905 | } |
|
| 906 | if (!empty($this->managerOptions['options']['access']['groups'])) { |
|
| 907 | return in_array(\Users\User::$cur->group_id, $this->managerOptions['options']['access']['groups']); |
|
| 908 | } |
|
| @@ 906-908 (lines=3) @@ | ||
| 903 | if (!empty($this->managerOptions['options']['access']['apps']) && !in_array(\App::$cur->name, $this->managerOptions['options']['access']['apps'])) { |
|
| 904 | return false; |
|
| 905 | } |
|
| 906 | if (!empty($this->managerOptions['options']['access']['groups'])) { |
|
| 907 | return in_array(\Users\User::$cur->group_id, $this->managerOptions['options']['access']['groups']); |
|
| 908 | } |
|
| 909 | if ($this->managerName == 'manager' && !\Users\User::$cur->isAdmin()) { |
|
| 910 | return false; |
|
| 911 | } |
|