FIX: require invoice right for order mass invoice action (#39139)
* FIX: Require invoice right for order mass invoice * Update list.php * Update ChangeLog --------- Co-authored-by: f-hoedl <hoefla14@htl-kaindorf.ac.at> Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
parent
d1e679633f
commit
049851bc31
1 changed files with 1 additions and 1 deletions
|
|
@ -411,7 +411,7 @@ if (empty($reshook)) {
|
|||
$month = "";
|
||||
include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
|
||||
|
||||
if ($massaction == 'confirm_createbills') { // Create bills from orders.
|
||||
if ($massaction == 'confirm_createbills' && $user->hasRight('facture', 'creer')) { // Create bills from orders.
|
||||
$orders = GETPOST('toselect', 'array:int');
|
||||
$createbills_onebythird = GETPOSTINT('createbills_onebythird');
|
||||
$validate_invoices = GETPOSTINT('validate_invoices');
|
||||
|
|
|
|||
Loading…
Reference in a new issue