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:
Marcos García de La Fuente 2017-04-09 14:29:40 +02:00
parent fe4f71296f
commit 411d276ed2

View File

@ -3744,7 +3744,9 @@ else if ($id > 0 || ! empty($ref))
print '</td>';
if ($action != 'classify') {
print '<td align="right"><a href="' . $_SERVER["PHP_SELF"] . '?action=classify&amp;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 '</tr></table>';