mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
bug #3427 - now only owner can change category
This commit is contained in:
parent
9178ccacd1
commit
4e74ee9adf
1 changed files with 4 additions and 1 deletions
|
@ -297,7 +297,10 @@ function package_details($id=0, $SID="") {
|
||||||
|
|
||||||
print "<tr>\n";
|
print "<tr>\n";
|
||||||
print " <td class='boxSoft' colspan='2'><span class='f3'>";
|
print " <td class='boxSoft' colspan='2'><span class='f3'>";
|
||||||
if ($row["Location"] == "unsupported" and $SID) {
|
if ($row["Location"] == "unsupported" and (
|
||||||
|
uid_from_sid($SID) == $row["MaintainerUID"] or
|
||||||
|
(account_from_sid($SID) == "Developer" or
|
||||||
|
account_from_sid($SID) == "Trusted User"))) {
|
||||||
$edit_cat = "<a href='/pkgedit.php?change_Category=1&ID=";
|
$edit_cat = "<a href='/pkgedit.php?change_Category=1&ID=";
|
||||||
$edit_cat .= intval($_REQUEST["ID"])."'>".$row["Category"]."</a>";
|
$edit_cat .= intval($_REQUEST["ID"])."'>".$row["Category"]."</a>";
|
||||||
$edit_cat .= " <span class='fix'>(";
|
$edit_cat .= " <span class='fix'>(";
|
||||||
|
|
Loading…
Add table
Reference in a new issue