Little changes
This commit is contained in:
parent
8eb74b5bd4
commit
04243510f3
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user