Update index.php

This commit is contained in:
Laurent Destailleur 2021-09-02 19:17:38 +02:00 committed by GitHub
parent 1c99bd7c4a
commit 74372a3bae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,7 +34,7 @@ require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
require_once DOL_DOCUMENT_ROOT.'/product/dynamic_price/class/price_parser.class.php'; require_once DOL_DOCUMENT_ROOT.'/product/dynamic_price/class/price_parser.class.php';
$type = GETPOST("type", 'int'); $type = GETPOST("type", 'int');
if ($type == '' && !$user->rights->produit->lire) { if ($type == '' && empty($user->rights->produit->lire)) {
$type = '1'; // Force global page on service page only $type = '1'; // Force global page on service page only
} }
if ($type == '' && empty($user->rights->service->lire)) { if ($type == '' && empty($user->rights->service->lire)) {