X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FReport%2FInfo.php;h=c5c80f0bd3ef851f4c2152de1d310f7b97aecf7f;hb=3912a0afbdc720afa82bb0c7bc6ae18f76360662;hp=3c4719466fb6f1151244c3ac7a5499a8a2bb1bad;hpb=49e5328671aec2d1a841fdd615b0d85e6c8fcfed;p=civicrm-core.git diff --git a/CRM/Report/Info.php b/CRM/Report/Info.php index 3c4719466f..c5c80f0bd3 100644 --- a/CRM/Report/Info.php +++ b/CRM/Report/Info.php @@ -1,9 +1,9 @@ array( + ts('access CiviReport'), + ts('View reports'), + ), + 'access Report Criteria' => array( + ts('access Report Criteria'), + ts('Change report search criteria'), + ), + 'administer reserved reports' => array( + ts('administer reserved reports'), + ts('Edit all reports that have been marked as reserved'), + ), + 'administer Reports' => array( + ts('administer Reports'), + ts('Manage report templates'), + ), + ); + + if (!$descriptions) { + foreach ($permissions as $name => $attr) { + $permissions[$name] = array_shift($attr); + } + } + + return $permissions; }