Remove 'todo' tag processing

This commit is contained in:
Alex Cabal 2024-04-05 14:00:15 -05:00
parent 0ff22d0ae6
commit debd0c31ae
2 changed files with 0 additions and 16 deletions

View file

@ -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;

View file

@ -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;
}