Fix up maintainer submission again, in a more robust manner

This commit is contained in:
Chris Morgan
2005-10-06 03:41:52 +00:00
committed by WineHQ
parent 21e9d423c5
commit 66b70de06c

View File

@@ -47,7 +47,7 @@ $superMaintainer = strip_tags($_POST['superMaintainer']);
/* if we have a versionId to check against see if */
/* the user is already a maintainer */
if(isset($_POST['versionId']) && $_SESSION['current']->isMaintainer($versionId))
if(!$superMaintainer && $_SESSION['current']->isMaintainer($versionId))
{
echo "You are already a maintainer of this app!";
exit;