From 16029378eb13d3748ee1b135b1f96486a20ba809 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Sun, 21 Aug 2005 03:50:39 +0000 Subject: [PATCH] Fix two other places where $iVersionId was used instead of $this->iVersionId, one in the reject path and another in the delete path --- include/version.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/version.php b/include/version.php index 0707339..dd9b146 100644 --- a/include/version.php +++ b/include/version.php @@ -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;