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:
Chris Morgan
2005-08-21 03:50:39 +00:00
committed by WineHQ
parent d5ba04b634
commit 16029378eb

View File

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