From b2becfb0ec3831fa945458367d7222e647c7db6f Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Wed, 24 Aug 2022 21:06:12 +0800 Subject: [PATCH] * Fix bug#26806. --- module/story/model.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/module/story/model.php b/module/story/model.php index 00b23b32ea..57a6a0fa15 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -1507,10 +1507,11 @@ class storyModel extends model foreach($storyIdList as $storyID) { if(!$storyID) continue; - $oldStory = $oldStories[$storyID]; - $isSuperReviewer = strpos(',' . trim(zget($this->config->story, 'superReviewers', ''), ',') . ',', ',' . $this->app->user->account . ','); - if($oldStory->status != 'draft' and $oldStory->status != 'changing') continue; + $isSuperReviewer = strpos(',' . trim(zget($this->config->story, 'superReviewers', ''), ',') . ',', ',' . $this->app->user->account . ','); + $oldStory = $oldStories[$storyID]; + + if($oldStory->status != 'reviewing') continue; if(!in_array($this->app->user->account, array_keys($reviewerList[$storyID])) and $isSuperReviewer === false) continue; if(isset($hasResult[$storyID]) and $hasResult[$storyID]->version == $oldStories[$storyID]->version) continue;