diff --git a/lib/Artwork.php b/lib/Artwork.php index a345fb9f..d5ae539b 100644 --- a/lib/Artwork.php +++ b/lib/Artwork.php @@ -356,6 +356,16 @@ class Artwork extends PropertiesBase{ * @throws \Exceptions\ValidationException */ protected function Validate(?string $imagePath = null, bool $isImageRequired = true): void{ + // TODO: Remove this block once all legacy artworks are fixed up + // If this is tagged with 'fixup' and we're the admin user, skip validation + if($GLOBALS['User']?->Benefits->CanReviewOwnArtwork){ + foreach($this->Tags as $tag){ + if($tag->Name == 'fixup'){ + return; + } + } + } + $now = new DateTime('now', new DateTimeZone('UTC')); $thisYear = intval($now->format('Y')); $error = new Exceptions\ValidationException();