AntonLV 9 years ago
parent
commit
fbec274439
2 changed files with 4 additions and 2 deletions
  1. 2 2
      inc/profiles.inc.php
  2. 2 0
      modules/boonex/acl/classes/BxAclModule.php

+ 2 - 2
inc/profiles.inc.php

@@ -233,7 +233,7 @@ function bx_check_login($iID, $sPassword, $iRole = BX_DOL_ROLE_MEMBER)
  * Declare that content is require user authoriztion and display login form if user isn't logged in
  * @param $bStudio require webmaster authorization
  */
-function bx_require_authentication ($bStudio = false)
+function bx_require_authentication ($bStudio = false, $bAjaxMode = false, $sForceRelocate = '')
 {
     $iRole = BX_DOL_ROLE_MEMBER;
     if ($bStudio)
@@ -243,7 +243,7 @@ function bx_require_authentication ($bStudio = false)
     $sPassword = isset($_COOKIE['memberPassword']) ? bx_process_input($_COOKIE['memberPassword']) : false;
 
     if (bx_check_login($sID, $sPassword, $iRole)) {
-        bx_login_form($bStudio);
+        bx_login_form($bStudio, $bAjaxMode, $sForceRelocate);
     }
 
     check_logged();

+ 2 - 0
modules/boonex/acl/classes/BxAclModule.php

@@ -77,6 +77,8 @@ class BxAclModule extends BxDolModule
      */
 	public function serviceGetBlockView()
 	{
+	    bx_require_authentication(false, false, $this->serviceGetViewUrl());
+
 		$sGrid = $this->_oConfig->getGridObject('view');
 		$oGrid = BxDolGrid::getObjectInstance($sGrid);
         if(!$oGrid)