summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2016-02-18 08:33:12 +0100
committerLukas Fleischer <lfleischer@archlinux.org>2016-02-19 18:18:48 +0100
commitfb56ec9d1e4c814f76e6c84174151376092b96dc (patch)
tree600d7f1b81c3566dec9989618fece284bb62df6d
parent1626d4d2f7a854ae39df31ccde9105b59197d16d (diff)
downloadaur-fb56ec9d1e4c814f76e6c84174151376092b96dc.tar.gz
aur-fb56ec9d1e4c814f76e6c84174151376092b96dc.tar.xz
Hide orphan request option for disowned package bases
If a package base is unmaintained, there is no need to file an orphan request. Hide the option from the front-end in this case. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
-rw-r--r--web/template/pkgreq_form.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/template/pkgreq_form.php b/web/template/pkgreq_form.php
index 5bd2bfe9..4fd7851d 100644
--- a/web/template/pkgreq_form.php
+++ b/web/template/pkgreq_form.php
@@ -19,7 +19,9 @@
<select name="type" id="id_type" onchange="showHideMergeSection()">
<option value="deletion"><?= __('Deletion') ?></option>
<option value="merge"><?= __('Merge') ?></option>
+ <?php if (pkgbase_maintainer_uid($base_id)): ?>
<option value="orphan"><?= __('Orphan') ?></option>
+ <?php endif; ?>
</select>
</p>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>