diff --git a/htdocs/compta/bank/account.php b/htdocs/compta/bank/account.php
index 6b404ff448b..096aa0c88bc 100644
--- a/htdocs/compta/bank/account.php
+++ b/htdocs/compta/bank/account.php
@@ -559,20 +559,21 @@ if ($account > 0)
}
else
{
- if ($user->rights->banque->modifier)
+ print '
';
- if ($user->rights->banque->modifier && $acct->type != 2 && $acct->rappro) // Si non compte cash et rapprochable
+ if ($acct->type != 2 && $acct->rappro) // Si non compte cash et rapprochable
{
- print '
'.$langs->trans("Conciliate").'';
+ if ($user->rights->banque->consolidate)
+ {
+ print '
'.$langs->trans("Conciliate").'';
+ }
+ else
+ {
+ print '
'.$langs->trans("Conciliate").'';
+ }
}
if ($user->rights->banque->modifier)
{
print '
'.$langs->trans("AddBankRecord").'';
}
+ else
+ {
+ print '
'.$langs->trans("AddBankRecord").'';
+ }
print '
';
}
diff --git a/htdocs/compta/bank/ligne.php b/htdocs/compta/bank/ligne.php
index da69f5bc5d6..a0306211c2a 100644
--- a/htdocs/compta/bank/ligne.php
+++ b/htdocs/compta/bank/ligne.php
@@ -31,7 +31,7 @@
require("./pre.inc.php");
-if (!$user->rights->banque->modifier)
+if (!$user->rights->banque->modifier && !$user->rights->banque->consolidate)
accessforbidden();
$langs->load("banks");
diff --git a/htdocs/compta/bank/rappro.php b/htdocs/compta/bank/rappro.php
index 9237ff6e8a6..337b6f22772 100644
--- a/htdocs/compta/bank/rappro.php
+++ b/htdocs/compta/bank/rappro.php
@@ -1,6 +1,6 @@
- * Copyright (C) 2004-2005 Laurent Destailleur