From 412d4756fe9fb6567af3b39d8ca994dfa69b8f85 Mon Sep 17 00:00:00 2001 From: Jonathan Ernst Date: Sat, 19 Feb 2005 01:22:32 +0000 Subject: [PATCH] - allow supermaintainers to send screenshot without being queued. - don't let queued have an empty value --- include/screenshot.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/screenshot.php b/include/screenshot.php index 5ff8cdb..59ce553 100644 --- a/include/screenshot.php +++ b/include/screenshot.php @@ -58,10 +58,14 @@ class Screenshot { */ function create($iVersionId = null, $sDescription = null, $hFile = null) { + $oVersion = new Version($iVersionId); // Security, if we are not an administrator or a maintainer, the screenshot must be queued. - if(!($_SESSION['current']->hasPriv("admin") || $_SESSION['current']->isMaintainer($_REQUEST['versionId']))) + if(!($_SESSION['current']->hasPriv("admin") || $_SESSION['current']->isMaintainer($oVersion->iVersionId) || $_SESSION['current']->isSuperMaintainer($oVersion->iAppId))) { $this->bQueued = true; + } else + { + $this->bQueued = false; } $aInsert = compile_insert_string(array( 'versionId' => $iVersionId,