Alexander Nicolaysen Sørnes : Fix previewing of versions
Chris Morgan
cmorgan at winehq.org
Sun Dec 23 10:18:59 CST 2007
Module: appdb
Branch: master
Commit: 587c866e163c658b2de9e0fcf70cb1a8c8df965d
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=587c866e163c658b2de9e0fcf70cb1a8c8df965d
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Sun Dec 23 16:19:07 2007 +0100
Fix previewing of versions
---
include/user.php | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/user.php b/include/user.php
index ebbb4c9..af15196 100644
--- a/include/user.php
+++ b/include/user.php
@@ -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;
More information about the wine-cvs
mailing list