Merge pull request #18630 from hregis/fix_wrong_table_element_line
FIX wrong table_element_line
This commit is contained in:
commit
9fe9d0e9bf
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2010-2015 Regis Houssin <regis.houssin@inodbox.com>
|
/* Copyright (C) 2010-2021 Regis Houssin <regis.houssin@inodbox.com>
|
||||||
* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2017 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -79,7 +79,7 @@ if (GETPOST('roworder', 'alpha', 3) && GETPOST('table_element_line', 'aZ09', 3)
|
|||||||
$perm = 1;
|
$perm = 1;
|
||||||
} elseif ($table_element_line == 'facturedet' && $user->rights->facture->creer) {
|
} elseif ($table_element_line == 'facturedet' && $user->rights->facture->creer) {
|
||||||
$perm = 1;
|
$perm = 1;
|
||||||
} elseif ($table_element_line == 'facturerecdet' && $user->rights->facture->creer) {
|
} elseif ($table_element_line == 'facturedet_rec' && $user->rights->facture->creer) {
|
||||||
$perm = 1;
|
$perm = 1;
|
||||||
} elseif ($table_element_line == 'ecm_files' && $user->rights->ecm->creer) {
|
} elseif ($table_element_line == 'ecm_files' && $user->rights->ecm->creer) {
|
||||||
$perm = 1;
|
$perm = 1;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user