mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 23:00:28 -04:00
Remove temporary fixup tag from artworks validation
This commit is contained in:
parent
5fd1a39128
commit
40932332cb
1 changed files with 0 additions and 10 deletions
|
@ -346,16 +346,6 @@ class Artwork extends Accessor{
|
|||
* @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 DateTimeImmutable();
|
||||
$thisYear = intval($now->format('Y'));
|
||||
$error = new Exceptions\ValidationException();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue