| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 34 | public function execute($user, $item, $params) |
||
| 35 | { |
||
| 36 | $organization = $params['organization']; |
||
| 37 | /* @var $organization Organization */// The Organization or department to be decided. |
||
| 38 | // If current user is creator of organization or department, he is allowed to manage it's profile. |
||
| 39 | if ($user->isOrganizationCreator($organization)|| $user->isOrganizationAdministrator($organization)) { |
||
| 40 | return true; |
||
| 41 | } |
||
| 42 | return false; |
||
| 43 | } |
||
| 44 | } |
||
| 45 |