| @@ 307-309 (lines=3) @@ | ||
| 304 | if (!empty($this->form['options']['access']['apps']) && !in_array(\App::$cur->name, $this->form['options']['access']['apps'])) { |
|
| 305 | return false; |
|
| 306 | } |
|
| 307 | if (!empty($this->form['options']['access']['groups']) && in_array(\Users\User::$cur->group_id, $this->form['options']['access']['groups'])) { |
|
| 308 | return true; |
|
| 309 | } |
|
| 310 | if ($this->model && !empty($this->form['options']['access']['self']) && \Users\User::$cur->id == $this->model->user_id) { |
|
| 311 | return true; |
|
| 312 | } |
|
| @@ 705-707 (lines=3) @@ | ||
| 702 | return false; |
|
| 703 | } |
|
| 704 | ||
| 705 | if (!empty($this->managerOptions['options']['access']['apps']) && !in_array(\App::$cur->name, $this->managerOptions['options']['access']['apps'])) { |
|
| 706 | return false; |
|
| 707 | } |
|
| 708 | if (!empty($this->managerOptions['options']['access']['groups']) && in_array(\Users\User::$cur->group_id, $this->managerOptions['options']['access']['groups'])) { |
|
| 709 | return true; |
|
| 710 | } |
|
| @@ 708-710 (lines=3) @@ | ||
| 705 | if (!empty($this->managerOptions['options']['access']['apps']) && !in_array(\App::$cur->name, $this->managerOptions['options']['access']['apps'])) { |
|
| 706 | return false; |
|
| 707 | } |
|
| 708 | if (!empty($this->managerOptions['options']['access']['groups']) && in_array(\Users\User::$cur->group_id, $this->managerOptions['options']['access']['groups'])) { |
|
| 709 | return true; |
|
| 710 | } |
|
| 711 | if ($this->managerName == 'manager' && !\Users\User::$cur->isAdmin()) { |
|
| 712 | return false; |
|
| 713 | } |
|