From 4e74ee9adf954facc8ab3758b29e31478cd5ef48 Mon Sep 17 00:00:00 2001 From: simo Date: Wed, 28 Dec 2005 05:09:40 +0000 Subject: bug #3427 - now only owner can change category --- web/lib/pkgfuncs.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'web/lib') diff --git a/web/lib/pkgfuncs.inc b/web/lib/pkgfuncs.inc index 5999dc5c..a868d534 100644 --- a/web/lib/pkgfuncs.inc +++ b/web/lib/pkgfuncs.inc @@ -297,7 +297,10 @@ function package_details($id=0, $SID="") { print "\n"; print " "; - 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 = "".$row["Category"].""; $edit_cat .= "  ("; -- cgit v1.2.3-24-g4f1b