| Conditions | 5 |
| Paths | 4 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public function load($acl_manager, $tags = null) |
||
| 8 | { |
||
| 9 | if (!$this->hasTag($tags) || !isset($this->file['acl'])) { |
||
| 10 | return; |
||
| 11 | } |
||
| 12 | |||
| 13 | foreach ($this->file['acl'] as $reference => $permissions) { |
||
| 14 | foreach ($permissions as $user => $permission) { |
||
| 15 | $acl_manager->setObjectPermission( |
||
| 16 | $this->loader->getReference($reference), |
||
| 17 | $this->getMask($permission), |
||
| 18 | $this->loader->getReference($user) |
||
| 19 | ); |
||
| 20 | } |
||
| 21 | } |
||
| 22 | } |
||
| 23 | |||
| 39 |