Status == ArtworkStatus::Unverified) && ($GLOBALS['User']->Benefits->CanReviewArtwork || ($artwork->SubmitterUserId == $GLOBALS['User']->UserId)); if(!$isEditingAllowed){ throw new Exceptions\InvalidPermissionsException(); } $isAdminView = $GLOBALS['User']->Benefits->CanReviewArtwork ?? false; // We got here because an artwork update had errors and the user has to try again if($exception){ http_response_code(422); session_unset(); } } catch(Exceptions\ArtworkNotFoundException){ Template::Emit404(); } catch(Exceptions\LoginRequiredException){ Template::RedirectToLogin(); } catch(Exceptions\InvalidPermissionsException){ Template::Emit403(); // No permissions to submit artwork } ?> 'Edit Artwork', 'artwork' => true, 'highlight' => '', 'description' => 'Edit public domain artwork to the database for use as cover art.' ] ) ?>

Edit Artwork

$exception]) ?>
$artwork, 'imageRequired' => false, 'isAdminView' => $isAdminView ] ) ?>