Auth\Controller\Accounts::getAcl PHP Method

getAcl() protected method

protected getAcl ( )
    protected function getAcl()
    {
        $acl = [];
        foreach ($this->app->helper("acl")->getGroups() as $group => $isadmin) {
            $acl[$group] = new \ArrayObject([]);
            foreach ($this->app->helper("acl")->getResources() as $resource => $actions) {
                $acl[$group][$resource] = new \ArrayObject([]);
                foreach ($actions as $action) {
                    $acl[$group][$resource][$action] = $this->app->helper("acl")->hasaccess($group, $resource, $action);
                }
            }
        }
        return $acl;
    }