|
@@ 127-130 (lines=4) @@
|
| 124 |
|
continue; |
| 125 |
|
} |
| 126 |
|
// does the user have admin permissions on the subscriber module? |
| 127 |
|
if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($hooksubscribers[$i]['name'] . "::", '::', ACCESS_ADMIN)) { |
| 128 |
|
unset($hooksubscribers[$i]); |
| 129 |
|
continue; |
| 130 |
|
} |
| 131 |
|
|
| 132 |
|
// get the areas of the subscriber |
| 133 |
|
$hooksubscriberAreas = $this->get('zikula_hook_bundle.collector.hook_collector')->getSubscriberAreasByOwner($hooksubscribers[$i]['name']); |
|
@@ 205-208 (lines=4) @@
|
| 202 |
|
} |
| 203 |
|
|
| 204 |
|
// does the user have admin permissions on the provider module? |
| 205 |
|
if (!$this->get('zikula_permissions_module.api.permission')->hasPermission($hookproviders[$i]['name']."::", '::', ACCESS_ADMIN)) { |
| 206 |
|
unset($hookproviders[$i]); |
| 207 |
|
continue; |
| 208 |
|
} |
| 209 |
|
|
| 210 |
|
// get the areas of the provider |
| 211 |
|
$hookproviderAreas = $this->get('zikula_hook_bundle.collector.hook_collector')->getProviderAreasByOwner($hookproviders[$i]['name']); |