mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
pkg_details.php: Hide "Adopt" button from logged out users
Reported-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
c318a50435
commit
f37f0eaea1
1 changed files with 2 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue