Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function validate(ProcInterface $proc, LoginManagerInterface $loginManager) |
||
13 | { |
||
14 | if (AuthManager::getPermissionManager() |
||
15 | ->hasAllowedRole($loginManager->getLoggedAccountId(), $proc->getName()) === false |
||
16 | ) { |
||
17 | throw new PermissionDenied('This operation is not allowed'); |
||
18 | } |
||
19 | |||
20 | return true; |
||
21 | } |
||
22 | } |
||
23 |