Auth\Controller\Accounts::getGroups PHP Method

getGroups() protected method

protected getGroups ( )
    protected function getGroups()
    {
        $groups = ['admin'];
        foreach ($this->app->db->getKey("cockpit/settings", "cockpit.acl.groups", []) as $group => $isadmin) {
            $groups[] = $group;
        }
        return $groups;
    }