From debd0c31aebacadfd949f52d6911215113850f41 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Fri, 5 Apr 2024 14:00:15 -0500 Subject: [PATCH] Remove 'todo' tag processing --- lib/Artwork.php | 10 ---------- lib/ArtworkTag.php | 6 ------ 2 files changed, 16 deletions(-) diff --git a/lib/Artwork.php b/lib/Artwork.php index 8d8abb64..e3cdc4e8 100644 --- a/lib/Artwork.php +++ b/lib/Artwork.php @@ -303,16 +303,6 @@ class Artwork extends Accessor{ return true; } - // TODO: Remove this once all legacy artworks are cleaned up and approved. - // Editors can edit approved artwork that has the 'todo' tag. - if($user->Benefits->CanReviewArtwork){ - foreach($this->Tags as $tag){ - if($tag->Name == 'todo'){ - return true; - } - } - } - if(($user->Benefits->CanReviewArtwork || $user->UserId == $this->SubmitterUserId) && ($this->Status == ArtworkStatus::Unverified || $this->Status == ArtworkStatus::Declined)){ // Editors can edit an artwork, and submitters can edit their own artwork, if it's not yet approved. return true; diff --git a/lib/ArtworkTag.php b/lib/ArtworkTag.php index 790a63b1..69ce0920 100644 --- a/lib/ArtworkTag.php +++ b/lib/ArtworkTag.php @@ -45,12 +45,6 @@ class ArtworkTag extends Tag{ $error->Add(new Exceptions\InvalidArtworkTagNameException()); } - // TODO: Remove this once all legacy artworks are cleaned up and approved. - // 'todo' is a reserved tag for legacy artworks. - if($this->Name == 'todo'){ - $error->Add(new Exceptions\InvalidArtworkTagNameException()); - } - if($error->HasExceptions){ throw $error; }