public function indexViewObjects(Response $response, bool $resetFilter = false)
    {
        if ($resetFilter) {
            return $this->resetFilter($response, $this->indexRoute);
        }

        try {
            $permissions = $this->permissionsEntityMapper->getObjects($this->getFilterColumnsInfo());
        } catch (QueryFailureException $e) {
            $permissions = [];
            // warning event is inserted when query fails
            SlimPostgres::setAdminNotice('Query Failed', 'failure');
        }
        
        return $this->indexView($response, $permissions);
    }