Fix: Si on a droit de modifier mot de passe on ne doit pas pour autant avoir droit de modifier autre info
This commit is contained in:
parent
29233bfa8d
commit
c509647ccb
@ -759,10 +759,10 @@ class User
|
||||
$this->email=trim($this->email);
|
||||
$this->note=trim($this->note);
|
||||
$this->admin=$this->admin?$this->admin:0;
|
||||
|
||||
$error=0;
|
||||
|
||||
if (!strlen($this->code)) $this->code = $this->login;
|
||||
|
||||
dolibarr_syslog("User::update nom=".$this->nom.", prenom=".$this->prenom);
|
||||
$error=0;
|
||||
|
||||
$sql = "UPDATE ".MAIN_DB_PREFIX."user SET ";
|
||||
$sql .= " name = '".addslashes($this->nom)."'";
|
||||
|
||||
@ -282,6 +282,7 @@ alter table llx_accountingsystem_det rename to llx_accountingaccount;
|
||||
|
||||
insert into llx_rights_def (id, libelle, module, type, bydefault, subperms, perms) values (262,'Consulter tous les clients','commercial','r',1,'voir','client');
|
||||
insert into llx_user_rights(fk_user,fk_id) select distinct fk_user, '262' from llx_user_rights where fk_id = 261;
|
||||
update llx_rights_def set subperms='creer' where subperms='supprimer' AND module='user' AND perms='self' AND id=255;
|
||||
|
||||
alter table llx_commandedet add column rang integer DEFAULT 0;
|
||||
alter table llx_propaldet add column rang integer DEFAULT 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user