Fix previewing of versions

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-12-23 16:19:07 +01:00
committed by Chris Morgan
parent a4720d9e4b
commit 587c866e16

View File

@@ -721,6 +721,10 @@ class User {
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($oVersion->objectGetState() == 'accepted')
return true;