Fix: Permission to read donation doc
This commit is contained in:
parent
6f31feb6fc
commit
be88f4c7c9
@ -424,6 +424,9 @@ if ($_GET["rowid"] && $_GET["action"] != 'edit')
|
|||||||
|
|
||||||
print "</div>";
|
print "</div>";
|
||||||
|
|
||||||
|
// \TODO Gérer action émettre paiement
|
||||||
|
$resteapayer = 0;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Barre d'actions
|
* Barre d'actions
|
||||||
@ -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 Gérer action émettre paiement
|
// \TODO Gérer 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>";
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user