CanBeEditedBy(Session::$User)){ throw new Exceptions\InvalidPermissionsException(); } // We got here because an artwork update had errors and the user has to try again. if($exception){ http_response_code(Enums\HttpCode::UnprocessableContent->value); session_unset(); } } catch(Exceptions\ArtworkNotFoundException){ Template::Emit404(); } catch(Exceptions\LoginRequiredException){ Template::RedirectToLogin(); } catch(Exceptions\InvalidPermissionsException){ Template::Emit403(); // No permissions to edit artwork. } ?> 'Edit ' . $artwork->Name . ', by ' . $artwork->Artist->Name, 'css' => ['/css/artwork.css'], 'highlight' => '', 'description' => 'Edit ' . $artwork->Name . ', by ' . $artwork->Artist->Name . ' in the Standard Ebooks cover art database.' ] ) ?>

Edit Artwork

$exception]) ?>
$artwork, 'isEditForm' => true]) ?>