Alexander Nicolaysen Sørnes : application: Fix viewing rejected applications for non-admins

Alexander Nicolaysen Sørnes asornes at winehq.org
Thu Nov 12 17:18:41 CST 2009


Module: appdb
Branch: master
Commit: f48d0fd290ae51f34ecb16f73636b28f9ac069b8
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=f48d0fd290ae51f34ecb16f73636b28f9ac069b8

Author: Alexander Nicolaysen Sørnes <alexander at linux-xqqm.(none)>
Date:   Thu Nov 12 18:45:57 2009 +0100

application: Fix viewing rejected applications for non-admins

---

 include/application.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/application.php b/include/application.php
index 3251261..6f8fa26 100644
--- a/include/application.php
+++ b/include/application.php
@@ -1286,7 +1286,7 @@ class Application {
         if($sState != 'accepted' && !application::canEdit())
         {
             /* Without edit rights users can only resubmit their rejected entries */
-            if(!$bRejected)
+            if($sState != 'rejected')
                 return FALSE;
 
             $sQuery = "SELECT COUNT(DISTINCT(appFamily.appId)) as count FROM appFamily$sExtraTables WHERE




More information about the wine-cvs mailing list