| @@ 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 | } |
|
| @@ 749-751 (lines=3) @@ | ||
| 746 | return false; |
|
| 747 | } |
|
| 748 | ||
| 749 | if (!empty($this->managerOptions['options']['access']['apps']) && !in_array(\App::$cur->name, $this->managerOptions['options']['access']['apps'])) { |
|
| 750 | return false; |
|
| 751 | } |
|
| 752 | if (!empty($this->managerOptions['options']['access']['groups']) && in_array(\Users\User::$cur->group_id, $this->managerOptions['options']['access']['groups'])) { |
|
| 753 | return true; |
|
| 754 | } |
|
| @@ 752-754 (lines=3) @@ | ||
| 749 | if (!empty($this->managerOptions['options']['access']['apps']) && !in_array(\App::$cur->name, $this->managerOptions['options']['access']['apps'])) { |
|
| 750 | return false; |
|
| 751 | } |
|
| 752 | if (!empty($this->managerOptions['options']['access']['groups']) && in_array(\Users\User::$cur->group_id, $this->managerOptions['options']['access']['groups'])) { |
|
| 753 | return true; |
|
| 754 | } |
|
| 755 | if ($this->managerName == 'manager' && !\Users\User::$cur->isAdmin()) { |
|
| 756 | return false; |
|
| 757 | } |
|