mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 17:08:45 +00:00
Remove redundant check
This commit is contained in:
parent
aa130075e8
commit
76a0167700
1 changed files with 0 additions and 4 deletions
|
|
@ -133,10 +133,6 @@ App::get('v1/console/resources/:resourceId')
|
|||
->inject('response')
|
||||
->inject('dbForConsole')
|
||||
->action(function (string $resourceId, string $type, Response $response, Database $dbForConsole) {
|
||||
if ($type !== 'rules') {
|
||||
throw new Exception(Exception::GENERAL_ARGUMENT_INVALID, 'Invalid resource type.');
|
||||
}
|
||||
|
||||
$document = Authorization::skip(fn () => $dbForConsole->getDocument('rules', $resourceId));
|
||||
|
||||
if ($document && !$document->isEmpty()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue