| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
+ */
/**
*
* array('access CiviEvent', 'access CiviContribute')
* ),
*
- * @return boolean
+ * @return bool
* true if yes, else false
*/
public static function check($permissions) {
* @param array $array
* The group/role to check.
*
- * @return boolean
+ * @return bool
* true if yes, else false
*/
public static function checkGroupRole($array) {
'export own manual batches' => $prefix . ts('export own manual batches'),
'export all manual batches' => $prefix . ts('export all manual batches'),
'administer payment processors' => $prefix . ts('administer payment processors'),
+ 'edit message templates' => $prefix . ts('edit message templates'),
);
return $permissions;
* Validate user permission across
* edit or view or with supportable acls.
*
- * @return boolean
- **/
+ * @return bool
+ */
public static function giveMeAllACLs() {
if (CRM_Core_Permission::check('view all contacts') ||
CRM_Core_Permission::check('edit all contacts')
'is_enabled'
) ? TRUE : FALSE;
}
+
}