Remove temporary fixup tag from artworks validation

This commit is contained in:
Alex Cabal 2024-04-15 12:21:35 -05:00
parent 5fd1a39128
commit 40932332cb

View file

@ -346,16 +346,6 @@ class Artwork extends Accessor{
* @throws \Exceptions\ValidationException * @throws \Exceptions\ValidationException
*/ */
protected function Validate(?string $imagePath = null, bool $isImageRequired = true): void{ 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 DateTimeImmutable(); $now = new DateTimeImmutable();
$thisYear = intval($now->format('Y')); $thisYear = intval($now->format('Y'));
$error = new Exceptions\ValidationException(); $error = new Exceptions\ValidationException();