From 652cbba535d2d9c17b1fdb98817866240bd910ec Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Thu, 18 Jan 2024 19:58:49 -0600 Subject: [PATCH] Fix permissions problem --- www/artworks/get.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/artworks/get.php b/www/artworks/get.php index efbb8eea..fdccdb3a 100644 --- a/www/artworks/get.php +++ b/www/artworks/get.php @@ -15,7 +15,7 @@ try{ if( ($GLOBALS['User'] === null && $artwork->Status != ArtworkStatus::Approved) || - ($GLOBALS['User'] !== null && $artwork->SubmitterUserId != $GLOBALS['User']->UserId && !$isReviewerView) + ($GLOBALS['User'] !== null && $artwork->Status != ArtworkStatus::Approved && $artwork->SubmitterUserId != $GLOBALS['User']->UserId && !$isReviewerView) ){ throw new Exceptions\InvalidPermissionsException(); }