Skip to content
Snippets Groups Projects
Commit 015dedc3 authored by fmarcet's avatar fmarcet
Browse files

FIX: Show category selector if we have permission to view products or

services
parent f319976e
No related branches found
No related tags found
No related merge requests found
...@@ -284,7 +284,7 @@ if ($result) ...@@ -284,7 +284,7 @@ if ($result)
$moreforfilter.='</div>'; $moreforfilter.='</div>';
} }
// If the user can view prospects other than his' // If the user can view prospects other than his'
if ($conf->categorie->enabled && $user->rights->produit->lire) if ($conf->categorie->enabled && ($user->rights->produit->lire || $user->rights->service->lire))
{ {
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php'; include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter.='<div class="divsearchfield">'; $moreforfilter.='<div class="divsearchfield">';
......
...@@ -281,7 +281,7 @@ if ($resql) ...@@ -281,7 +281,7 @@ if ($resql)
$moreforfilter.='</div>'; $moreforfilter.='</div>';
} }
// If the user can view prospects other than his' // If the user can view prospects other than his'
if ($conf->categorie->enabled && $user->rights->produit->lire) if ($conf->categorie->enabled && ($user->rights->produit->lire || $user->rights->service->lire))
{ {
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php'; include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter.='<div class="divsearchfield">'; $moreforfilter.='<div class="divsearchfield">';
......
...@@ -296,7 +296,7 @@ if ($resql) ...@@ -296,7 +296,7 @@ if ($resql)
$moreforfilter.='</div>'; $moreforfilter.='</div>';
} }
// If the user can view prospects other than his' // If the user can view prospects other than his'
if ($conf->categorie->enabled && $user->rights->produit->lire) if ($conf->categorie->enabled && ($user->rights->produit->lire || $user->rights->service->lire))
{ {
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php'; include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
$moreforfilter.='<div class="divsearchfield">'; $moreforfilter.='<div class="divsearchfield">';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment