diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-18 14:32:02 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-09-18 14:33:48 +0200 |
commit | f37f0eaea1b276614856b300cd7c51eb27c7d138 (patch) | |
tree | 0b2d935a4fba2736412e5fda7c4e7d72981071b9 /web/template/pkg_details.php | |
parent | c318a50435a5697418ac2b55de698e2f6a057192 (diff) | |
download | aurweb-f37f0eaea1b276614856b300cd7c51eb27c7d138.tar.xz |
pkg_details.php: Hide "Adopt" button from logged out users
Reported-by: canyonknight <canyonknight@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkg_details.php')
-rw-r--r-- | web/template/pkg_details.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index 7176e10..a4cd347 100644 --- a/web/template/pkg_details.php +++ b/web/template/pkg_details.php @@ -56,6 +56,7 @@ $sources = package_sources($row["ID"]); <?php endif; ?> <?php endif; ?> </ul> + <?php if ($uid): ?> <form action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post"> <div> <input type="hidden" name="IDs[<?php echo $row['ID'] ?>]" value="1" /> @@ -71,6 +72,7 @@ $sources = package_sources($row["ID"]); <?php endif; ?> </p> </form> + <?php endif; ?> </div> </div> |