summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorGordian Edenhofer <gordian.edenhofer@gmail.com>2015-06-26 21:03:17 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-27 13:04:03 +0200
commit8bd03adb6168b16222510f2e1a148f2ad5ea3afb (patch)
tree4bf3bb990c637dec3abf3519c797c434c6547155 /web/template
parentb036b436aa64be000481f8d1da30ff53d4bcb889 (diff)
downloadaur-8bd03adb6168b16222510f2e1a148f2ad5ea3afb.tar.gz
aur-8bd03adb6168b16222510f2e1a148f2ad5ea3afb.tar.xz
Fake pkgbase actions for unconfirmed users
Displaying flag, notify, vote, adopt and file request links for users which did not authenticate themselves and letting those fake buttons link to the login page. Signed-off-by: Gordian Edenhofer <gordian.edenhofer@gmail.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/pkgbase_actions.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/web/template/pkgbase_actions.php b/web/template/pkgbase_actions.php
index 757b0635..61ad18f5 100644
--- a/web/template/pkgbase_actions.php
+++ b/web/template/pkgbase_actions.php
@@ -9,7 +9,6 @@
<li><a href="<?= $snapshot_uri ?>"><?= __('Download snapshot') ?></a>
<li><a href="https://wiki.archlinux.org/index.php/Special:Search?search=<?= urlencode($row['Name']) ?>"><?= __('Search wiki') ?></a></li>
<li><span class="flagged"><?php if ($row["OutOfDateTS"] !== NULL) { echo __('Flagged out-of-date')." (${out_of_date_time})"; } ?></span></li>
- <?php if ($uid): ?>
<?php if ($row["OutOfDateTS"] === NULL): ?>
<li><?= html_action_form($base_uri . 'flag/', "do_Flag", __('Flag package out-of-date')) ?></li>
<?php elseif (($row["OutOfDateTS"] !== NULL) && has_credential(CRED_PKGBASE_UNFLAG, $maintainers)): ?>
@@ -45,7 +44,6 @@
<?php elseif (has_credential(CRED_PKGBASE_DISOWN, array($row["MaintainerUID"]))): ?>
<li><?= html_action_form($base_uri . 'disown/', "do_Disown", __('Disown Package')) ?></li>
<?php endif; ?>
- <?php endif; ?>
</ul>
</div>
</div>