Merge pull request #10615 from mepps/CRM-20828
[civicrm-core.git] / CRM / Core / Permission.php
index d5445fd845e96453ac35c81267b53001cdc38316..1e28ab6fdb0ae0bcc6e034592ee4dd1ec765ad50 100644 (file)
@@ -127,7 +127,7 @@ class CRM_Core_Permission {
         foreach ($permission as $orPerm) {
           if (self::check($orPerm)) {
             //one of our 'or' permissions has succeeded - stop checking this permission
-            return TRUE;;
+            return TRUE;
           }
         }
         //none of our our conditions was met
@@ -1096,6 +1096,7 @@ class CRM_Core_Permission {
         'edit contributions',
       ),
     );
+    $permissions['contribution_recur'] = $permissions['payment'];
 
     // Custom field permissions
     $permissions['custom_field'] = array(
@@ -1135,7 +1136,7 @@ class CRM_Core_Permission {
     $permissions['state_province'] = array(
       'get' => array(
         'access CiviCRM',
-      )
+      ),
     );
 
     // Price sets are shared by several components, user needs access to at least one of them