Add test results as part of submitting an application or version

This commit is contained in:
Tony Lambregts
2005-10-28 00:11:35 +00:00
committed by WineHQ
parent 696aab7ad8
commit 8ebccb4f2a
8 changed files with 666 additions and 324 deletions

View File

@@ -805,9 +805,18 @@ class User {
}
/* Can this user Requeue an application? */
function canRequeueApplication()
function canRequeueApplication($oApp)
{
return $this->hasPriv("admin");
if($oApp->sQueued == 'false')
return false;
if($this->hasPriv("admin"))
return true;
if(($oApp->sQueued != 'false') && ($oApp->iSubmitterId == $this->iUserId))
return true;
return false;
}
/* Can the user reject application? */