mirror of
https://github.com/flarum/core.git
synced 2025-07-21 08:41:17 +02:00
Remove superfluous ForbiddenException
It has the same effect as the PermissionDeniedException, so let's just use that. Refs #1641.
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Flarum.
|
||||
*
|
||||
* (c) Toby Zerner <toby.zerner@gmail.com>
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
namespace Flarum\Http\Exception;
|
||||
|
||||
use Exception;
|
||||
use Flarum\Foundation\KnownError;
|
||||
|
||||
class ForbiddenException extends Exception implements KnownError
|
||||
{
|
||||
public function getType(): string
|
||||
{
|
||||
return 'forbidden';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user