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

This commit is contained in:
Alexander Nicolaysen Sørnes
2008-07-22 14:07:32 +02:00
committed by Chris Morgan
parent 6e9abaab68
commit 1ab8145d02

View File

@@ -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;