FIX #6669 User with no permission to edit customer invoices can see a edit button in project entry
Close #6669
This commit is contained in:
parent
fe4f71296f
commit
411d276ed2
@ -3744,7 +3744,9 @@ else if ($id > 0 || ! empty($ref))
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
if ($action != 'classify') {
|
if ($action != 'classify') {
|
||||||
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=classify&facid=' . $object->id . '">';
|
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=classify&facid=' . $object->id . '">';
|
||||||
print img_edit($langs->trans('SetProject'), 1);
|
if ($user->rights->facture->creer) {
|
||||||
|
print img_edit($langs->trans('SetProject'), 1);
|
||||||
|
}
|
||||||
print '</a></td>';
|
print '</a></td>';
|
||||||
}
|
}
|
||||||
print '</tr></table>';
|
print '</tr></table>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user