forked from Wavyzz/dolibarr
Fix: Enabling permission on modules enabled during install was not working.
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
/**
|
||||
* \file htdocs/user/class/user.class.php
|
||||
* \brief Fichier de la classe utilisateur
|
||||
* \version $Id: user.class.php,v 1.45 2011/07/08 18:49:16 eldy Exp $
|
||||
* \version $Id: user.class.php,v 1.46 2011/07/17 18:13:44 eldy Exp $
|
||||
*/
|
||||
|
||||
require_once(DOL_DOCUMENT_ROOT ."/core/class/commonobject.class.php");
|
||||
@@ -585,8 +585,8 @@ class User extends CommonObject
|
||||
}
|
||||
|
||||
/**
|
||||
* \brief Change status of a user
|
||||
* \return int <0 if KO, 0 if nothing is done, >0 if OK
|
||||
* Change status of a user
|
||||
* @return int <0 if KO, 0 if nothing is done, >0 if OK
|
||||
*/
|
||||
function setstatus($statut)
|
||||
{
|
||||
@@ -735,6 +735,7 @@ class User extends CommonObject
|
||||
if ($num)
|
||||
{
|
||||
$this->error = 'ErrorLoginAlreadyExists';
|
||||
dol_syslog("User::Create ".$this->error, LOG_WARNING);
|
||||
$this->db->rollback();
|
||||
return -6;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user