mirror of
https://github.com/standardebooks/web.git
synced 2025-07-08 07:40:39 -04:00
Remove 'todo' tag processing
This commit is contained in:
parent
0ff22d0ae6
commit
debd0c31ae
2 changed files with 0 additions and 16 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue