testData: only show Move link to super maintianers
This commit is contained in:
committed by
Alexander Nicolaysen Sørnes
parent
a7e909e4aa
commit
968569b3fa
@@ -618,10 +618,15 @@ class testData{
|
|||||||
if ($this->iTestingId && $_SESSION['current']->hasAppVersionModifyPermission($oVersion))
|
if ($this->iTestingId && $_SESSION['current']->hasAppVersionModifyPermission($oVersion))
|
||||||
{
|
{
|
||||||
$oObject = new objectManager('testData');
|
$oObject = new objectManager('testData');
|
||||||
|
if($oApp->canEdit())
|
||||||
|
$shChangeParentLink = '<a href="'.$oObject->makeUrl('showChangeParent', $this->iTestingId, 'Move test report to another version').'&sReturnTo='.urlencode($_SERVER['REQUEST_URI']).'">Move</a>'."\n";
|
||||||
|
else
|
||||||
|
$shChangeParentLink = '';
|
||||||
|
|
||||||
$oTableRow->AddTextCell('<a href="'.$oObject->makeUrl('edit', $this->iTestingId,
|
$oTableRow->AddTextCell('<a href="'.$oObject->makeUrl('edit', $this->iTestingId,
|
||||||
'Edit Test Results').'&sReturnTo='.urlencode($_SERVER['REQUEST_URI']).'">'.
|
'Edit Test Results').'&sReturnTo='.urlencode($_SERVER['REQUEST_URI']).'">'.
|
||||||
'Edit</a> '."\n".
|
'Edit</a> '."\n".
|
||||||
'<a href="'.$oObject->makeUrl('showChangeParent', $this->iTestingId, 'Move test report to another version').'&sReturnTo='.urlencode($_SERVER['REQUEST_URI']).'">Move</a>'."\n".
|
$shChangeParentLink.
|
||||||
'<a href="'.$oObject->makeUrl('delete', $this->iTestingId, 'Delete+Test+Results').
|
'<a href="'.$oObject->makeUrl('delete', $this->iTestingId, 'Delete+Test+Results').
|
||||||
'&sReturnTo='.urlencode($_SERVER['REQUEST_URI']).'">Delete</a></td>'."\n");
|
'&sReturnTo='.urlencode($_SERVER['REQUEST_URI']).'">Delete</a></td>'."\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user