problem with admin function in chat rooms.

Last post 09-01-2006, 12:10 AM by cutechat. 6 replies.
Sort Posts: Previous Next
  •  08-17-2006, 2:55 PM 21951

    problem with admin function in chat rooms.

    My problem is that any user can right click in a chat room and select the admin options. I have added all correct code for custom install including the check if user is administrator code in the global file. (See admin code below) All the other admin only functions work on the site it is just the chat rooms that are not working. Please help.
     
    you can see this problem by going to http://test.indiankarma.com and logging in with username: cutesoft and password: cutesoft. After logging in, click on the chit chat link.
     
    public bool IsAdministrator(string useruniquename)
        {
            if(Session["IsAdmin"]!=null)
      return true;
      
             return false;

    Paul
    Post Hope
  •  08-17-2006, 4:51 PM 21954 in reply to 21951

    Re: problem with admin function in chat rooms.

    indiankarma.com,
     
    Please check your integration code.
     
    And make sure the current user is administrator.
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-17-2006, 10:38 PM 21957 in reply to 21954

    Re: problem with admin function in chat rooms.

    the intagration code is correct and the isadmin session is checked apon login to the site so there is no way that the non admin users should have the access. Do I need to change any of the code below?
     
    public bool IsAdministrator(string useruniquename)
        {
            if(Session["IsAdmin"]!=null)
      return true;
      
             return false;

    Paul
    Post Hope
  •  08-23-2006, 1:46 AM 22060 in reply to 21957

    Re: problem with admin function in chat rooms.

    Can I get an answer to this question??? I know the intagration is correct. Please give other reason this problem could be happening??????

    Paul
    Post Hope
  •  08-31-2006, 9:07 AM 22244 in reply to 22060

    Re: problem with admin function in chat rooms.

     
    I have test your website using that account.
    And all works for me.
     
    Maybe there's a browser-cache problem .
     
    Please refresh the chat room page and try again .
     
    We will declare the page not cachable to improve this issue .
     
    Regards , Terry .
  •  08-31-2006, 8:49 PM 22275 in reply to 22244

    Re: problem with admin function in chat rooms.

    Hello Terry,

     

    When you say all worked for you what does that mean? When you right clicked in the chat room you did or did NOT have access to the admin options? Because the user cutesoft is NOT an admin. The problem is that all the users that are NOT admins still have the admin options available to them when they right click in the chat room.

     

    I have tried on 3 different computers with 3 different NONADMIN users after clearing the cache and all 3 users still had access to the admin options.

     

    I cant have all the admin options for the chat rooms available to all NONADMIN users like it is now. Please help with this problem!!!!!


    Paul
    Post Hope
  •  09-01-2006, 12:10 AM 22277 in reply to 22275

    Re: problem with admin function in chat rooms.

    Yes, I have checked again .
     
    the IsAdministrator function is not for current user . You must query your database and get whether the 'useruniquename' is the administrator.
     
    public bool IsAdministrator(string useruniquename)
    {
        
         return MyUserModal.IsMySiteAdmin(useruniquename);
     
    }
View as RSS news feed in XML