How can i use roles

Last post 06-16-2005, 4:22 PM by manishma. 2 replies.
Sort Posts: Previous Next
  •  06-12-2005, 3:25 PM 7513

    How can i use roles

    i see that there is role management
     
    but i don't understand how i cam use it
     
    i can build role , assign ussers and what is the next step?
     
    can i have chat chanels by roles?
     
    i guess i suppouse to to have it but i did not find  way to do it
     
    in database i see Chat_Role_Chanel table
     
    and more:
     
    Chat_User_Channel,
    Chat_Group
     
    what is it?
  •  06-13-2005, 2:38 PM 7547 in reply to 7513

    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 . 
     
  •  06-16-2005, 4:22 PM 7696 in reply to 7547

    Re: How can i use roles

    as i understand for the moment only two chanel types implemented
    it is Lobby and Privat (Chat_Lobby and Chat_PrivateChanel tables)
     
     
    in my site i need to have for each user to have access only for his group chanel
     
    for this good way to use group access model
     
    i know asp.net wery well
     
    so i can build it
     
    but i need your help to understand how you system works
     
    if it is possible to have some simple documentation about classes in you assembly
     
    i have build help file used NDOC program but it does not contain any comments
     
View as RSS news feed in XML