This commit is contained in:
Yagami
2023-05-14 13:01:36 +08:00
parent 841759ab9c
commit 80a1c2cf79
+1 -1
View File
@@ -4534,7 +4534,7 @@ class storyModel extends model
$isSuperReviewer = strpos(',' . trim(zget($config->story, 'superReviewers', ''), ',') . ',', ',' . $app->user->account . ',');
if($action == 'change') return (($isSuperReviewer !== false or count($story->reviewer) == 0 or count($story->notReview) == 0) and ($story->status == 'active' or $story->status == 'launched'));
if($action == 'change') return (($isSuperReviewer !== false or count($story->reviewer) == 0 or count($story->notReview) == 0) and (in_array($story->status, array('active', 'launched', 'developing'))));
if($action == 'review') return (($isSuperReviewer !== false or in_array($app->user->account, $story->notReview)) and $story->status == 'reviewing');
if($action == 'recall') return strpos('reviewing,changing', $story->status) !== false;
if($action == 'close') return $story->status != 'closed';