| @@ 310-312 (lines=3) @@ | ||
| 307 | if (!empty($this->form['options']['access']['apps']) && !in_array(\App::$cur->name, $this->form['options']['access']['apps'])) { |
|
| 308 | return false; |
|
| 309 | } |
|
| 310 | if (!empty($this->form['options']['access']['groups']) && in_array(\Users\User::$cur->group_id, $this->form['options']['access']['groups'])) { |
|
| 311 | return true; |
|
| 312 | } |
|
| 313 | if ($this->model && !empty($this->form['options']['access']['self']) && \Users\User::$cur->id == $this->model->user_id) { |
|
| 314 | return true; |
|
| 315 | } |
|
| @@ 741-743 (lines=3) @@ | ||
| 738 | return false; |
|
| 739 | } |
|
| 740 | ||
| 741 | if (!empty($this->managerOptions['options']['access']['apps']) && !in_array(\App::$cur->name, $this->managerOptions['options']['access']['apps'])) { |
|
| 742 | return false; |
|
| 743 | } |
|
| 744 | if (!empty($this->managerOptions['options']['access']['groups']) && in_array(\Users\User::$cur->group_id, $this->managerOptions['options']['access']['groups'])) { |
|
| 745 | return true; |
|
| 746 | } |
|
| @@ 744-746 (lines=3) @@ | ||
| 741 | if (!empty($this->managerOptions['options']['access']['apps']) && !in_array(\App::$cur->name, $this->managerOptions['options']['access']['apps'])) { |
|
| 742 | return false; |
|
| 743 | } |
|
| 744 | if (!empty($this->managerOptions['options']['access']['groups']) && in_array(\Users\User::$cur->group_id, $this->managerOptions['options']['access']['groups'])) { |
|
| 745 | return true; |
|
| 746 | } |
|
| 747 | if ($this->managerName == 'manager' && !\Users\User::$cur->isAdmin()) { |
|
| 748 | return false; |
|
| 749 | } |
|