Merge pull request #6670 from marcosgdf/bug-6669

FIX #6669 User with no permission to edit customer invoices can see a edit button in project entry
This commit is contained in:
Laurent Destailleur 2017-04-11 11:15:16 +02:00 committed by GitHub
commit eb4236011b

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>';