Fix previewing of versions
This commit is contained in:
committed by
Chris Morgan
parent
a4720d9e4b
commit
587c866e16
@@ -721,6 +721,10 @@ class User {
|
|||||||
|
|
||||||
function canViewVersion($oVersion)
|
function canViewVersion($oVersion)
|
||||||
{
|
{
|
||||||
|
/* If there is no id that means data must have been generated by the user */
|
||||||
|
if(!$this->iVersionId)
|
||||||
|
return true;
|
||||||
|
|
||||||
/* if the version isn't queued */
|
/* if the version isn't queued */
|
||||||
if($oVersion->objectGetState() == 'accepted')
|
if($oVersion->objectGetState() == 'accepted')
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user