Alexander Nicolaysen Sørnes : version: Only allow submitter to edit if it hasn't been accepted yet

Chris Morgan cmorgan at winehq.org
Wed Jul 23 11:31:51 CDT 2008


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

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Tue Jul 22 14:07:32 2008 +0200

version: Only allow submitter to edit if it hasn't been accepted yet

---

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

diff --git a/include/version.php b/include/version.php
index 3526012..b6ed1bf 100644
--- a/include/version.php
+++ b/include/version.php
@@ -1493,7 +1493,7 @@ class version {
             if(maintainer::isUserMaintainer($_SESSION['current'], $this->iVersionId))
                 return TRUE;
 
-            if($this->iSubmitterId == $_SESSION['current']->iUserId)
+            if($this->sState != 'accepted' && $this->iSubmitterId == $_SESSION['current']->iUserId)
                 return TRUE;
 
             return FALSE;




More information about the wine-cvs mailing list