version: Only allow submitter to edit if it hasn't been accepted yet
This commit is contained in:
committed by
Chris Morgan
parent
6e9abaab68
commit
1ab8145d02
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user