Re: Moderator Message Queue not working with single sign on

  •  06-16-2011, 6:12 AM

    Re: Moderator Message Queue not working with single sign on

    I have got similar effect.
     
    I have MySQL - package from Kenneth - and IIS 7 with Windows Authentication now.
    In sample tables 'users' and userrole I have added proper domain logins and roles for logins - this works as a charm. (Of course, when I am an admin I can have only one browser opened.) So I can have 'Admin' role.
    Except this below.
     
    I cannot ad "Moderator" role to user.
    I Got this message
    <resource name="INVALIDTARGET">The specified user is currently offline or does not exist.</resource>
    when I am trying to set Moderator role for any user.
     
    I can set these three another roles with no problem:
    <resource name="UI_Menu_UserLevel_Silence">Silence</resource>
    <resource name="UI_Menu_UserLevel_Normal">Normal</resource>
    <resource name="UI_Menu_UserLevel_VIP">VIP</resource>
    <resource name="UI_Menu_UserLevel_Speaker">Speaker</resource>
     
    Resource INVALIDTARGET I found only in CuteChat.dll file.
     
    With this little change in SampleProvider.cs user with role "Moderators" is getting Admin rights too, but setting manually does not nork to.
     
            public override bool GetUserInfo(string loginName, ref string nickName, ref bool isAdmin)
            {
                UserData userdata=new UserData();
                if(!userdata.IsUsernameExists(loginName))
                    return false;

                nickName=loginName;

                //isAdmin=SamplePortal.Global.IsUserInRole("Admins",loginName) && SamplePortal.Global.IsUserInRole("Moderators",loginName);
     
                if (SamplePortal.Global.IsUserInRole("Admins",loginName) && SamplePortal.Global.IsUserInRole("Moderators",loginName));
                    isAdmin = true;
                
                return true;
            }
     
     
     
View Complete Thread