Alexander Nicolaysen Sørnes : Allow users to view apps with no id
Chris Morgan
cmorgan at winehq.org
Tue Oct 23 18:31:16 CDT 2007
Module: appdb
Branch: master
Commit: 0c47bd87a3ba556c794fb8e39926ae91f67b7aad
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=0c47bd87a3ba556c794fb8e39926ae91f67b7aad
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Tue Oct 23 13:35:06 2007 +0200
Allow users to view apps with no id
---
include/user.php | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/user.php b/include/user.php
index b30dee3..b23f005 100644
--- a/include/user.php
+++ b/include/user.php
@@ -632,6 +632,10 @@ class User {
/* application permissions */
function canViewApplication($oApp)
{
+ /* If there is no id the app is not in the database, which means the current user must have created the object */
+ if(!$oApp->iAppId)
+ return true;
+
/* if the application isn't queued */
if($oApp->sQueued == 'false')
return true;
More information about the wine-cvs
mailing list