src/Resources/DbSchema.php
protected function validateSchemaAccess($schema, $action = null)
    {
        if (empty($schema)) {
            throw new BadRequestException('Schema name can not be empty.');
        }

        $this->doesSchemaExist($schema);
        $this->checkPermission($action, $schema);
    }
protected function validateSchemaAccess($schema, $action = null)
    {
        if (empty($schema)) {
            throw new BadRequestException('Schema name can not be empty.');
        }

        $this->doesSchemaExist($schema);
        $this->checkPermission($action, $schema);
    }
@param string $schema
@param string $action

@throws BadRequestException
@throws \DreamFactory\Core\Exceptions\ForbiddenException