maintainerView: Fix viewing other users
This commit is contained in:
committed by
Chris Morgan
parent
3226aef81b
commit
9964749f5a
@@ -35,7 +35,7 @@ class maintainerView
|
|||||||
$oTableRow->AddCell($oTableCell);
|
$oTableRow->AddCell($oTableCell);
|
||||||
|
|
||||||
/* Get test reports submitted by the user */
|
/* Get test reports submitted by the user */
|
||||||
$aTestData = testData::getTestResultsForUser($_SESSION['current']->iUserId,
|
$aTestData = testData::getTestResultsForUser($this->iUserId,
|
||||||
$oVersion->iVersionId);
|
$oVersion->iVersionId);
|
||||||
|
|
||||||
if(sizeof($aTestData))
|
if(sizeof($aTestData))
|
||||||
@@ -63,10 +63,9 @@ class maintainerView
|
|||||||
including last tested release & rating */
|
including last tested release & rating */
|
||||||
function display()
|
function display()
|
||||||
{
|
{
|
||||||
if(!$this->bViewingSelf)
|
|
||||||
$oUser = new user($this->iUserId);
|
$oUser = new user($this->iUserId);
|
||||||
|
|
||||||
$aMaintainedApps = maintainer::getAppsMaintained($_SESSION['current']);
|
$aMaintainedApps = maintainer::getAppsMaintained($oUser);
|
||||||
if(!$aMaintainedApps || !sizeof($aMaintainedApps))
|
if(!$aMaintainedApps || !sizeof($aMaintainedApps))
|
||||||
{
|
{
|
||||||
if($this->bViewingSelf)
|
if($this->bViewingSelf)
|
||||||
|
|||||||
Reference in New Issue
Block a user