Fixing style errors.
This commit is contained in:
parent
480ac1a926
commit
fcb50841cc
@ -292,7 +292,7 @@ class Categories extends DolibarrApi
|
|||||||
throw new RestException(404, 'category not found');
|
throw new RestException(404, 'category not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO Add all types
|
// TODO Add all types
|
||||||
if ($type === "product") {
|
if ($type === "product") {
|
||||||
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
|
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
|
||||||
throw new RestException(401);
|
throw new RestException(401);
|
||||||
@ -353,7 +353,7 @@ class Categories extends DolibarrApi
|
|||||||
throw new RestException(404, 'category not found');
|
throw new RestException(404, 'category not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO Add all types
|
// TODO Add all types
|
||||||
if ($type === "product") {
|
if ($type === "product") {
|
||||||
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
|
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
|
||||||
throw new RestException(401);
|
throw new RestException(401);
|
||||||
@ -414,7 +414,7 @@ class Categories extends DolibarrApi
|
|||||||
throw new RestException(404, 'category not found');
|
throw new RestException(404, 'category not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO Add all types
|
// TODO Add all types
|
||||||
if ($type === "product") {
|
if ($type === "product") {
|
||||||
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
|
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
|
||||||
throw new RestException(401);
|
throw new RestException(401);
|
||||||
@ -473,7 +473,7 @@ class Categories extends DolibarrApi
|
|||||||
throw new RestException(404, 'category not found');
|
throw new RestException(404, 'category not found');
|
||||||
}
|
}
|
||||||
|
|
||||||
# TODO Add all types
|
// TODO Add all types
|
||||||
if ($type === "product") {
|
if ($type === "product") {
|
||||||
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
|
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
|
||||||
throw new RestException(401);
|
throw new RestException(401);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user