Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
36 | public static function checkAccess($org, $user) |
||
37 | { |
||
38 | MemberAction::checkAccess($org, $user); |
||
39 | if (!Yii::$app->authManager->checkAccess($user->getGUID(), (new ManageProfile)->name, ['organization' => $org])) { |
||
40 | throw new UnauthorizedManageProfileException(); |
||
41 | } |
||
42 | return true; |
||
43 | } |
||
44 | |||
56 |