Update card.php

Avoid regression on restrictArea
This commit is contained in:
Laurent Destailleur 2019-02-14 15:23:34 +01:00 committed by GitHub
parent 4ac086ab70
commit 2c2052d113
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,8 @@ if (! $sortorder) $sortorder="DESC";
$backtopage=GETPOST('backtopage','alpha');
// Security check
$result=restrictedArea($user,'stock', $id, 'entrepot&stock');
//$result=restrictedArea($user,'stock', $id, 'entrepot&stock');
$result=restrictedArea($user,'stock');
// Initialize technical object to manage hooks of page. Note that conf->hooks_modules contains array of hook context
$hookmanager->initHooks(array('warehousecard','globalcard'));