mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix wrapper to image barcode
This commit is contained in:
parent
b756c4a51e
commit
6efa1560b9
|
|
@ -81,7 +81,7 @@ $entity=GETPOST('entity','int')?GETPOST('entity','int'):$conf->entity;
|
|||
|
||||
// Security check
|
||||
if (empty($modulepart) && empty($hashp)) accessforbidden('Bad link. Bad value for parameter modulepart',0,0,1);
|
||||
if (empty($original_file) && empty($hashp)) accessforbidden('Bad link. Missing identification to find file (original_file or hashp)',0,0,1);
|
||||
if (empty($original_file) && empty($hashp) && $modulepart != 'barcode') accessforbidden('Bad link. Missing identification to find file (original_file or hashp)',0,0,1);
|
||||
if ($modulepart == 'fckeditor') $modulepart='medias'; // For backward compatibility
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user