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::ExitWithCode(Enums\HttpCode::NotFound); } catch(Exceptions\LoginRequiredException){ Template::RedirectToLogin(); } catch(Exceptions\InvalidPermissionsException){ Template::ExitWithCode(Enums\HttpCode::Forbidden); // No permissions to edit artwork. } ?> Name . ', by ' . $artwork->Artist->Name, css: ['/css/artwork.css'], description: 'Edit ' . $artwork->Name . ', by ' . $artwork->Artist->Name . ' in the Standard Ebooks cover art database.' ) ?>

Edit Artwork