public function pass()
    {
        $action      = $this->getParameter('action');

        return $this->Permissions->checkPermission($action, $this->getLocal('SiteSlug'));
    }
public function pass()
    {
        $action      = $this->getParameter('action');

        return $this->Permissions->checkPermission($action, $this->getLocal('SiteSlug'));
    }
public function pass ( ) { $ action = $ this -> getParameter ( 'action' ) ; return $ this -> Permissions -> checkPermission ( $ action , $ this -> getLocal ( 'SiteSlug' ) ) ; }
Checks if the specified action is granted to the current user

Expected Params:
action string The action string to check

@return boolean True if the user is allowed access
Checks if the specified action is granted to the current user