X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FGrant%2FInfo.php;h=ff42c27a8ed3e08ecad5595d869cfcdba3d4ed19;hb=8b28658191c44fd1fea3f06052546f0b29cdbf5b;hp=45d93e6b261eae205dba82bc7aa1d92326b6d63a;hpb=c15fb38374462a40d704d83fac983412df8a16a1;p=civicrm-core.git diff --git a/CRM/Grant/Info.php b/CRM/Grant/Info.php index 45d93e6b26..ff42c27a8e 100644 --- a/CRM/Grant/Info.php +++ b/CRM/Grant/Info.php @@ -1,9 +1,9 @@ array( + ts('access CiviGrant'), + ts('View all grants'), + ), + 'edit grants' => array( + ts('edit grants'), + ts('Create and update grants'), + ), + 'delete in CiviGrant' => array( + ts('delete in CiviGrant'), + ts('Delete grants'), + ), ); + + if (!$descriptions) { + foreach ($permissions as $name => $attr) { + $permissions[$name] = array_shift($attr); + } + } + + return $permissions; } /**