| Conditions | 4 |
| Paths | 4 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 29 | public function assert(Acl $acl, RoleInterface $role = null, ResourceInterface $resource = null, $privilege = null) |
||
| 30 | { |
||
| 31 | return 'edit' == $privilege |
||
| 32 | && $role instanceOf UserInterface |
||
| 33 | && $resource instanceOf OrganizationInterface |
||
| 34 | && $resource->getPermissions()->isGranted($role, PermissionsInterface::PERMISSION_CHANGE); |
||
| 35 | } |
||
| 36 | } |