Chris Morgan
Only display testing results for applications that are not currently queued if the user isn't an admin.
This commit is contained in:
@@ -119,6 +119,14 @@ else
|
||||
$oApp = new application($oVersion->iAppId);
|
||||
$oSubmitter = new User($oTest->iSubmitterId);
|
||||
$bgcolor = $oTest->sTestedRating;
|
||||
|
||||
/* make sure the user can view the versions we list in the table */
|
||||
/* otherwise skip over displaying the entries in this table */
|
||||
if(!$_SESSION[current]->canViewApplication($oApp))
|
||||
continue;
|
||||
if(!$_SESSION[current]->canViewVersion($oVersion))
|
||||
continue;
|
||||
|
||||
echo '<tr class='.$bgcolor.'>',"\n";
|
||||
echo '<td><a href="'.BASE.'appview.php?versionId='.$oTest->iVersionId.'&iTestingId='.$oTest->iTestingId.'">',"\n";
|
||||
echo $oApp->sName.' '.$oVersion->sName.'</a></td>',"\n";
|
||||
|
||||
Reference in New Issue
Block a user