mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
FIX same context of others
This commit is contained in:
parent
724d03c754
commit
3836e5685a
|
|
@ -564,7 +564,7 @@ if (!defined('NOLOGIN'))
|
|||
|
||||
// Hooks for security access
|
||||
$action = '';
|
||||
$hookmanager->initHooks(array('loginsecurity'));
|
||||
$hookmanager->initHooks(array('login'));
|
||||
$parameters = array('dol_authmode'=>$dol_authmode);
|
||||
$reshook = $hookmanager->executeHooks('loginCheckSecurityAccess', $parameters, $user, $action); // Note that $action and $object may have been modified by some hooks
|
||||
if ($reshook < 0) $error++;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user