Module: appdb Branch: master Commit: 587c866e163c658b2de9e0fcf70cb1a8c8df965d URL: http://source.winehq.org/git/appdb.git/?a=commit;h=587c866e163c658b2de9e0fcf...
Author: Alexander Nicolaysen Sørnes alex@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;