Work around bug where submitting versions resulted in testData not being properly queued
This commit is contained in:
@@ -923,15 +923,8 @@ class testData{
|
|||||||
{
|
{
|
||||||
if($_SESSION['current']->hasPriv("admin"))
|
if($_SESSION['current']->hasPriv("admin"))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
else if($this->iVersionId)
|
|
||||||
{
|
return TRUE;
|
||||||
$oVersion = new version($this->iVersionId);
|
|
||||||
if($oVersion->canEdit())
|
|
||||||
return FALSE;
|
|
||||||
else
|
|
||||||
return TRUE;
|
|
||||||
} else
|
|
||||||
return TRUE;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user