mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
doesn't show disown package when already disowned
Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
This commit is contained in:
parent
73f807a5a8
commit
52fb8550a2
1 changed files with 4 additions and 6 deletions
|
@ -512,11 +512,9 @@ function package_details($id=0, $SID="") {
|
||||||
if ($row["MaintainerUID"] == 0) {
|
if ($row["MaintainerUID"] == 0) {
|
||||||
echo "<input type='submit' class='button' name='do_Adopt'";
|
echo "<input type='submit' class='button' name='do_Adopt'";
|
||||||
echo " value='".__("Adopt Packages")."'>\n";
|
echo " value='".__("Adopt Packages")."'>\n";
|
||||||
}
|
} else if ($row["MaintainerUID"] == uid_from_sid($SID) ||
|
||||||
|
account_from_sid($SID) == "Trusted User" ||
|
||||||
if ($row["MaintainerUID"] == uid_from_sid($SID) ||
|
account_from_sid($SID) == "Developer") {
|
||||||
account_from_sid($SID) == "Trusted User" ||
|
|
||||||
account_from_sid($SID) == "Developer") {
|
|
||||||
echo "<input type='submit' class='button' name='do_Disown'";
|
echo "<input type='submit' class='button' name='do_Disown'";
|
||||||
echo " value='".__("Disown Packages")."'>\n";
|
echo " value='".__("Disown Packages")."'>\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue