Little changes

This commit is contained in:
Marcos García de La Fuente 2015-11-08 14:54:29 +01:00
parent 8eb74b5bd4
commit 04243510f3

View File

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