Update actions_printing.inc.php
This commit is contained in:
parent
ab22c9d0de
commit
3afcf50d07
@ -1,6 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2014-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2014-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2014 Frederic France <frederic.france@free.fr>
|
* Copyright (C) 2014-2018 Frederic France <frederic.france@netlogic.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -28,7 +28,7 @@
|
|||||||
// Filename to print must be provided into 'file' parameter
|
// Filename to print must be provided into 'file' parameter
|
||||||
|
|
||||||
// Print file
|
// Print file
|
||||||
if ($action == 'print_file' and $user->rights->printing->read)
|
if ($action == 'print_file' && $user->rights->printing->read)
|
||||||
{
|
{
|
||||||
$langs->load("printing");
|
$langs->load("printing");
|
||||||
require_once DOL_DOCUMENT_ROOT . '/core/modules/printing/modules_printing.php';
|
require_once DOL_DOCUMENT_ROOT . '/core/modules/printing/modules_printing.php';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user