Fix : getRights has been replaced by loadRights in V20
This commit is contained in:
parent
76c98a4666
commit
9535baf6d2
4 changed files with 5 additions and 5 deletions
|
|
@ -150,7 +150,7 @@ while ($i < GEN_NUMBER_FACTURE && $result >= 0) {
|
|||
|
||||
$fuser = new User($db);
|
||||
$fuser->fetch(mt_rand(1, 2));
|
||||
$fuser->getRights();
|
||||
$fuser->loadRights();
|
||||
|
||||
$result=$object->create($fuser);
|
||||
if ($result >= 0) {
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ for ($s = 0; $s < GEN_NUMBER_COMMANDE; $s++) {
|
|||
|
||||
$fuser = new User($db);
|
||||
$fuser->fetch($listofuserid[mt_rand(0, 2)]);
|
||||
$fuser->getRights();
|
||||
$fuser->loadRights();
|
||||
|
||||
$db->begin();
|
||||
|
||||
|
|
|
|||
|
|
@ -171,7 +171,7 @@ while ($i < GEN_NUMBER_PROPAL && $result >= 0) {
|
|||
|
||||
$fuser = new User($db);
|
||||
$fuser->fetch(mt_rand(1, 2));
|
||||
$fuser->getRights();
|
||||
$fuser->loadRights();
|
||||
|
||||
$object->contactid = $contids[$socids[$socid]][0];
|
||||
$object->socid = $socids[$socid];
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ class SupplierProposalTest extends CommonClassTest
|
|||
|
||||
// Set permission not set by default sql sample
|
||||
$user->addrights(0, 'supplier_proposal');
|
||||
$user->getrights('supplier_proposal', 1);
|
||||
$user->loadRights('supplier_proposal', 1);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -183,7 +183,7 @@ class SupplierProposalTest extends CommonClassTest
|
|||
$result = $user->addrights(0, 'supplier_proposal');
|
||||
$this->assertLessThan($result, 0);
|
||||
|
||||
$result = $user->getrights('supplier_proposal', 1);
|
||||
$result = $user->loadRights('supplier_proposal', 1);
|
||||
//$this->assertLessThan($result, 0);
|
||||
|
||||
$result = $localobject->valid($user);
|
||||
|
|
|
|||
Loading…
Reference in a new issue