Skip to content
Snippets Groups Projects
Commit be88f4c7 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: Permission to read donation doc

parent 6f31feb6
No related branches found
No related tags found
No related merge requests found
...@@ -424,6 +424,9 @@ if ($_GET["rowid"] && $_GET["action"] != 'edit') ...@@ -424,6 +424,9 @@ if ($_GET["rowid"] && $_GET["action"] != 'edit')
print "</div>"; print "</div>";
// \TODO Grer action mettre paiement
$resteapayer = 0;
/** /**
* Barre d'actions * Barre d'actions
...@@ -437,21 +440,25 @@ if ($_GET["rowid"] && $_GET["action"] != 'edit') ...@@ -437,21 +440,25 @@ if ($_GET["rowid"] && $_GET["action"] != 'edit')
print '<a class="butAction" href="fiche.php?rowid='.$don->id.'&action=valid_promesse">'.$langs->trans("ValidPromess").'</a>'; print '<a class="butAction" href="fiche.php?rowid='.$don->id.'&action=valid_promesse">'.$langs->trans("ValidPromess").'</a>';
} }
// \todo Grer action mettre paiement // \TODO Grer action mettre paiement
if ($don->statut == 1 && $resteapayer > 0) if ($don->statut == 1 && $resteapayer > 0)
{ {
print "<a class=\"butAction\" href=\"paiement.php?facid=$facid&action=create\">".$langs->trans("DoPayment")."</a>"; print "<a class=\"butAction\" href=\"paiement.php?facid=$facid&action=create\">".$langs->trans("DoPayment")."</a>";
} }
if ($don->statut == 1 && abs($resteapayer) == 0 && $don->paye == 0) if ($don->statut == 1 && $resteapayer == 0 && $don->paye == 0)
{ {
print "<a class=\"butAction\" href=\"fiche.php?rowid=$don->id&action=set_payed\">".$langs->trans("ClassifyPayed")."</a>"; print "<a class=\"butAction\" href=\"fiche.php?rowid=$don->id&action=set_payed\">".$langs->trans("ClassifyPayed")."</a>";
} }
if ($don->statut == 0) if ($user->rights->don->supprimer)
{ {
print "<a class=\"butActionDelete\" href=\"fiche.php?rowid=$don->id&action=delete\">".$langs->trans("Delete")."</a>"; print "<a class=\"butActionDelete\" href=\"fiche.php?rowid=$don->id&action=delete\">".$langs->trans("Delete")."</a>";
} }
else
{
print "<a class=\"butActionRefused\" href=\"#\">".$langs->trans("Delete")."</a>";
}
print "</div>"; print "</div>";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment