public function personalWorkspaceAllowed($roles)
    {
        $roles[] = $this->roleManager->getRoleByName('ROLE_USER');

        foreach ($roles as $role) {
            if ($role->isPersonalWorkspaceCreationEnabled()) {
                return true;
            }
        }

        return false;
    }
public function personalWorkspaceAllowed($roles)
    {
        $roles[] = $this->roleManager->getRoleByName('ROLE_USER');

        foreach ($roles as $role) {
            if ($role->isPersonalWorkspaceCreationEnabled()) {
                return true;
            }
        }

        return false;
    }
public function personalWorkspaceAllowed ( $ roles ) { $ roles [ ] = $ this -> roleManager -> getRoleByName ( 'ROLE_USER' ) ; foreach ( $ roles as $ role ) { if ( $ role -> isPersonalWorkspaceCreationEnabled ( ) ) { return true ; } } return false ; }
Checks if a user will have a personal workspace at his creation.
Checks if a user will have a personal workspace at his creation .