mirror of
https://github.com/standardebooks/web.git
synced 2025-07-05 14:20:29 -04:00
For non-admin reviewers (i.e., without `CanReviewOwnArtwork`), the `PATCH` form has a hidden element with the artwork's current `Status`. If the reviewer updates the `EbookUrl` and not `Status`, then don't record the reviewer's `ReviewerUserId` because they didn't review or change the `Status`. Side note: Sending the `PATCH` form an invalid `Status` will result in a validation error, but that validation error was hard to read because it was the wrong exception type. This commit adds a new `InvalidArtworkStatusException` to fix that. Fixes #433
7 lines
164 B
PHP
7 lines
164 B
PHP
<?
|
|
namespace Exceptions;
|
|
|
|
class InvalidArtworkStatusException extends AppException{
|
|
/** @var string $message */
|
|
protected $message = 'Invalid artwork status.';
|
|
}
|