Pass a version object to hasAppVersionModifyPermission(), not a version id integer
This commit is contained in:
@@ -452,7 +452,7 @@ class testData{
|
|||||||
echo ' <td>'.$oTest->sRuns.' </td>',"\n";
|
echo ' <td>'.$oTest->sRuns.' </td>',"\n";
|
||||||
echo ' <td>'.$oTest->sTestedRating.' </td>',"\n";
|
echo ' <td>'.$oTest->sTestedRating.' </td>',"\n";
|
||||||
echo ' <td>'.$sStatus.' </td>',"\n";
|
echo ' <td>'.$sStatus.' </td>',"\n";
|
||||||
if ($_SESSION['current']->hasAppVersionModifyPermission($oTest->iVersionId))
|
if ($_SESSION['current']->hasAppVersionModifyPermission($oVersion))
|
||||||
{
|
{
|
||||||
echo '<td><a href="'.BASE.'admin/adminTestResults.php?sub=view&iTestingId='.$oTest->iTestingId.'">',"\n";
|
echo '<td><a href="'.BASE.'admin/adminTestResults.php?sub=view&iTestingId='.$oTest->iTestingId.'">',"\n";
|
||||||
echo 'Edit</a></td>',"\n";
|
echo 'Edit</a></td>',"\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user