Distinct auth from perm
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user