summaryrefslogtreecommitdiffstats
path: root/web/lib/pkgfuncs.inc.php
diff options
context:
space:
mode:
authorcanyonknight <canyonknight@gmail.com>2012-09-20 01:41:30 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-20 10:58:29 +0200
commit2d4dda7cc296d6ad61fa38409d3dc048a6d01fbe (patch)
treeb3f70df327832bb81c2dbfa2bf825c8bc3de030a /web/lib/pkgfuncs.inc.php
parenta2f9eff861c88fe5fb2a0ad4bf08fc39154d278c (diff)
downloadaur-2d4dda7cc296d6ad61fa38409d3dc048a6d01fbe.tar.gz
aur-2d4dda7cc296d6ad61fa38409d3dc048a6d01fbe.tar.xz
Remove unused canManagePackage() function
Signed-off-by: canyonknight <canyonknight@gmail.com> Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/pkgfuncs.inc.php')
-rw-r--r--web/lib/pkgfuncs.inc.php22
1 files changed, 0 insertions, 22 deletions
diff --git a/web/lib/pkgfuncs.inc.php b/web/lib/pkgfuncs.inc.php
index 0c96a0ba..9e3b6863 100644
--- a/web/lib/pkgfuncs.inc.php
+++ b/web/lib/pkgfuncs.inc.php
@@ -40,28 +40,6 @@ function canDeleteCommentArray($comment, $atype="", $uid=0) {
return FALSE;
}
-# see if this Users.ID can manage the package
-#
-function canManagePackage($uid=0,$AURMUID=0, $MUID=0, $SUID=0, $managed=0) {
- if (!$uid) {return 0;}
-
- # The uid of the TU/Dev that manages the package
- #
- if ($uid == $AURMUID) {return 1;}
-
- # If the package isn't maintained by a TU/Dev, is this the user-maintainer?
- #
- if ($uid == $MUID && !$managed) {return 1;}
-
- # If the package isn't maintained by a TU/Dev, is this the user-submitter?
- #
- if ($uid == $SUID && !$managed) {return 1;}
-
- # otherwise, no right to manage this package
- #
- return 0;
-}
-
# Check if the current user can submit blacklisted packages.
#
function canSubmitBlacklisted($atype = "") {