protected function checkAuth($resources, $modules, $accesses)
    {
        $resources = \is_array($resources) ? $resources : array($resources);
        $modules = \is_array($modules) ? $modules : array($modules);
        $accesses = \is_array($accesses) ? $accesses : array($accesses);

        if ($this->getSecurityContext()->isGranted(array("ADMIN"), $resources, $modules, $accesses)) {
            // Okay !
             return null;
        }

         // Log the problem
         $this->adminLogAppend(implode(",", $resources), implode(",", $accesses), "User is not granted for resources %s with accesses %s", implode(", ", $resources), implode(", ", $accesses));

        return $this->errorPage($this->getTranslator()->trans("Sorry, you're not allowed to perform this action"), 403);
    }