summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 21:33:17 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-07-17 22:23:40 +0200
commit55f05b3861602252a25acb9094480b913497750c (patch)
tree8cae11ed2e43238ef05aad4a9b6651fb42e9d084
parentc87ae9d299fe48eadab05c52d7cbabd14463a5ca (diff)
downloadaur-55f05b3861602252a25acb9094480b913497750c.tar.gz
aur-55f05b3861602252a25acb9094480b913497750c.tar.xz
actions_form.php: Hide empty form
Do not show the actions form if it doesn't contain any elements. This comes into effect if the virtual path feature is enabled and the current user doesn't have TU/developer privileges. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r--web/template/actions_form.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/template/actions_form.php b/web/template/actions_form.php
index 4b3845dc..bfc0611c 100644
--- a/web/template/actions_form.php
+++ b/web/template/actions_form.php
@@ -1,3 +1,4 @@
+<?php if (!$USE_VIRTUAL_URLS || $atype == "Trusted User" || $atype == "Developer" ): ?>
<div class="box">
<form action="<?php echo htmlspecialchars(get_pkg_uri($row['Name']), ENT_QUOTES); ?>" method="post">
<fieldset>
@@ -36,3 +37,4 @@
</fieldset>
</form>
</div>
+<?php endif; ?>