Fixing style errors.

This commit is contained in:
stickler-ci 2019-11-12 17:10:20 +00:00
parent 480ac1a926
commit fcb50841cc

View File

@ -292,7 +292,7 @@ class Categories extends DolibarrApi
throw new RestException(404, 'category not found');
}
# TODO Add all types
// TODO Add all types
if ($type === "product") {
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
throw new RestException(401);
@ -353,7 +353,7 @@ class Categories extends DolibarrApi
throw new RestException(404, 'category not found');
}
# TODO Add all types
// TODO Add all types
if ($type === "product") {
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
throw new RestException(401);
@ -414,7 +414,7 @@ class Categories extends DolibarrApi
throw new RestException(404, 'category not found');
}
# TODO Add all types
// TODO Add all types
if ($type === "product") {
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
throw new RestException(401);
@ -473,7 +473,7 @@ class Categories extends DolibarrApi
throw new RestException(404, 'category not found');
}
# TODO Add all types
// TODO Add all types
if ($type === "product") {
if(! (DolibarrApiAccess::$user->rights->produit->creer || DolibarrApiAccess::$user->rights->service->creer)) {
throw new RestException(401);