Distinct auth from perm
This commit is contained in:
parent
93e5cebce0
commit
73c7dc1b5e
@ -30,7 +30,7 @@ class ApiError extends Exception
|
||||
public static function unauthorized(string $message)
|
||||
{
|
||||
return new ApiError(json_encode([
|
||||
"code" => "Unauthorized",
|
||||
"code" => "NotAllowed",
|
||||
"message" => $message,
|
||||
]), 401);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user