diff options
author | simo <simo> | 2005-12-28 05:09:40 +0000 |
---|---|---|
committer | simo <simo> | 2005-12-28 05:09:40 +0000 |
commit | 4e74ee9adf954facc8ab3758b29e31478cd5ef48 (patch) | |
tree | 8c48cc0379d83927407747ed0c3beb1139da0be2 /web/lib | |
parent | 9178ccacd1b2144ead6760f0aab05c9ec2af483a (diff) | |
download | aurweb-4e74ee9adf954facc8ab3758b29e31478cd5ef48.tar.xz |
bug #3427 - now only owner can change category
Diffstat (limited to 'web/lib')
-rw-r--r-- | web/lib/pkgfuncs.inc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 5999dc5..a868d53 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -297,7 +297,10 @@ function package_details($id=0, $SID="") { print "<tr>\n"; 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 .= intval($_REQUEST["ID"])."'>".$row["Category"]."</a>"; $edit_cat .= " <span class='fix'>("; |