From dd5edba2ed9e6b6f93f43e1c7aede7e5db1a49d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Fri, 15 Jun 2007 23:54:50 +0000 Subject: [PATCH] Hide the maintainer box if the user supermaintains the application --- include/version_queue.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/version_queue.php b/include/version_queue.php index 4b3350a..d025314 100644 --- a/include/version_queue.php +++ b/include/version_queue.php @@ -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 "
\n";