Re: How can i use roles

  •  06-13-2005, 2:38 PM

    Re: How can i use roles

    Hello:
     
    Those tables are about the relation of user/role and the channel .
    But currently that feature is not fully implemented .
    We plan move that feature in date-site chat .
    Sorry for this inconvenience .
     
    But you could list the lobby by role by programmely .

    for example , You could change the data binding code to:

    ArrayList list=new ArrayList();
    foreach(Chat_Lobby lobby in ChatWebUtility.Api.GetLobbies())
    {
        if(lobby.IsHidden)continue;
        if(!lobby.IsEnable)continue;
        
        //write your code to filter the lobby .
        if( ! WhetherThisLobbyShowForCurrentUser( lobby ) ) continue;

        list.Add(lobby);
    }

    this.DataList_Lobbies.DataSource = list;
    this.DataList_Lobbies.DataBind();
     
    Regards , Terry . 
     
View Complete Thread