Commit f37f0eae authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

pkg_details.php: Hide "Adopt" button from logged out users


Reported-by: default avatarcanyonknight <canyonknight@gmail.com>
Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent c318a504
......@@ -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>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment