public function admin()
    {
        $currentuser = $this->getUser();
        $users = $this->users()->getUsers();
        $sessions = $this->accessControl()->getActiveSessions();

        foreach ($users as $name => $user) {
            if (($key = array_search(Permissions::ROLE_EVERYONE, $user['roles'], true)) !== false) {
                unset($users[$name]['roles'][$key]);
            }
        }

        $context = [
            'currentuser' => $currentuser,
            'users'       => $users,
            'sessions'    => $sessions,
        ];

        return $this->render('@bolt/users/users.twig', $context);
    }
public function admin()
    {
        $currentuser = $this->getUser();
        $users = $this->users()->getUsers();
        $sessions = $this->accessControl()->getActiveSessions();

        foreach ($users as $name => $user) {
            if (($key = array_search(Permissions::ROLE_EVERYONE, $user['roles'], true)) !== false) {
                unset($users[$name]['roles'][$key]);
            }
        }

        $context = [
            'currentuser' => $currentuser,
            'users'       => $users,
            'sessions'    => $sessions,
        ];

        return $this->render('@bolt/users/users.twig', $context);
    }
public function admin ( ) { $ currentuser = $ this -> getUser ( ) ; $ users = $ this -> users ( ) -> getUsers ( ) ; $ sessions = $ this -> accessControl ( ) -> getActiveSessions ( ) ; foreach ( $ users as $ name => $ user ) { if ( ( $ key = array_search ( Permissions :: ROLE_EVERYONE , $ user [ 'roles' ] , true ) ) !== false ) { unset ( $ users [ $ name ] [ 'roles' ] [ $ key ] ) ; } } $ context = [ 'currentuser' => $ currentuser , 'users' => $ users , 'sessions' => $ sessions , ] ; return $ this -> render ( '@bolt/users/users.twig' , $ context ) ; }
All users admin page.

@return \Bolt\Response\TemplateResponse
All users admin page .