AlexeyUna há 4 anos atrás
pai
commit
4f24e4b639
1 ficheiros alterados com 14 adições e 0 exclusões
  1. 14 0
      inc/classes/BxDolAcl.php

+ 14 - 0
inc/classes/BxDolAcl.php

@@ -318,6 +318,20 @@ class BxDolAcl extends BxDolFactory implements iBxDolSingleton
         $aResult[CHECK_ACTION_PARAMETER] = $aAction['additional_param_value'];
         $aLangFileParams[CHECK_ACTION_LANG_FILE_ACTION] = !empty($aAction['title']) ? _t($aAction['title']) : $aAction['name'];
 
+        /* Check membership action with ability to overwrite params - begin */
+        $bContinue = true;
+        bx_alert('membership', 'check_action', $iActionId, $iProfileId, array(
+            'action' => &$aAction,
+            'perform' => &$bPerformAction,
+            'result' => &$aResult,
+            'lang' => &$aLangFileParams,
+            'continue' => &$bContinue
+        ));
+
+        if (!$bContinue)
+            return $aResult;
+        /* Check membership action with ability to overwrite params - end */
+
         /**
          * Action is not allowed for the current membership
          */