Merge pull request #3947 from marcosgdf/little-changes

Little changes
This commit is contained in:
Laurent Destailleur 2015-11-08 15:29:24 +01:00
commit 645e27d44a

View File

@ -4089,11 +4089,15 @@ class Product extends CommonObject
return 1;
}
/**
* Returns the rights used for this class
* @return stdClass
*/
public function getRights()
{
global $user;
if ($this->isproduct()) {
if ($this->isProduct()) {
return $user->rights->produit;
} else {
return $user->rights->service;