Fix two other places where $iVersionId was used instead of $this->iVersionId, one in the reject path and another in the delete path
This commit is contained in:
@@ -251,7 +251,7 @@ class Version {
|
||||
{
|
||||
/* is the current user allowed to delete this version? */
|
||||
if(!$_SESSION['current']->hasPriv("admin") &&
|
||||
!$_SESSION['current']->hasAppVersionModifyPermission($iVersionId) &&
|
||||
!$_SESSION['current']->hasAppVersionModifyPermission($this->iVersionId) &&
|
||||
!(($_SESSION['current']->iUserId == $this->iSubmitterId) && ($this->sQueued == 'rejected')))
|
||||
{
|
||||
return;
|
||||
@@ -366,7 +366,7 @@ class Version {
|
||||
{
|
||||
/* is the current user allowed to delete this version? */
|
||||
if(!$_SESSION['current']->hasPriv("admin") &&
|
||||
!$_SESSION['current']->hasAppVersionModifyPermission($iVersionId) &&
|
||||
!$_SESSION['current']->hasAppVersionModifyPermission($this->iVersionId) &&
|
||||
!$_SESSION['current']->iUserId == $this->iSubmitterId)
|
||||
{
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user