diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php index cbcc4451883..277f45e7c94 100644 --- a/htdocs/compta/bank/ligne.php +++ b/htdocs/compta/bank/ligne.php @@ -75,7 +75,7 @@ if ($action == 'confirm_delete_categ' && $confirm == "yes" && $user->rights->ban } } -if ($action == 'class') +if ($user->rights->banque->modifier && $action == 'class') { $sql = "DELETE FROM ".MAIN_DB_PREFIX."bank_class WHERE lineid = ".$rowid." AND fk_categ = ".$_POST["cat1"]; if (! $db->query($sql)) @@ -90,7 +90,7 @@ if ($action == 'class') } } -if ($action == "update") +if ($user->rights->banque->modifier && $action == "update") { $error=0; @@ -584,8 +584,11 @@ print ''; print ''; print ''; print ''.$langs->trans("Rubriques").''; -print ' '; -print ''; +if ($user->rights->banque->modifier) +{ + print ' '; + print ''; +} print ""; print "";