Hide the maintainer box if the user supermaintains the application

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-06-15 23:54:50 +00:00
committed by WineHQ
parent c5e1b08b5d
commit dd5edba2ed

View File

@@ -101,7 +101,8 @@ class version_queue
/* Allow the user to apply as maintainer if this is a new version.
If it is a new application as well, radio boxes will be displayed
by the application class instead. */
if(!$this->oVersion->iVersionId && $this->oVersion->iAppId)
if(!$this->oVersion->iVersionId && $this->oVersion->iAppId &&
!$_SESSION['current']->isSuperMaintainer($this->oVersion->iAppId))
{
echo html_frame_start("Become Maintainer", "90%");
echo "<div style='padding:5px;' class='color0'>\n";