function piwik_reports_any_access in Piwik Reports 7.3
Same name and namespace in other branches
- 7.4 piwik_reports.module \piwik_reports_any_access()
Determine if user has any piwik reports permissions.
Parameters
array $arguments: Array of permissions.
Return value
bool True if user has any piwik reports permissions.
1 string reference to 'piwik_reports_any_access'
- piwik_reports_menu_alter in ./
piwik_reports.module - Implements hook_menu_alter().
File
- ./
piwik_reports.module, line 390 - Defines features and functions common to Piwik Reports.
Code
function piwik_reports_any_access($arguments) {
foreach ($arguments as $perm) {
if (user_access($perm)) {
return TRUE;
}
}
return FALSE;
}