Re: Forbidden: You don't have permission to access Admin Console.

  •  12-11-2008, 6:11 AM

    Re: Forbidden: You don't have permission to access Admin Console.

    I fixed this issue by overriding the IsAdministrator function:

            Public Overrides Function IsAdministrator(ByVal userid As String) As Boolean
     
                Dim userGUID As Guid = New Guid(userid)
                Dim LoginName As String = Membership.GetUser(userGUID).UserName
                Dim IsUserInRole As Boolean = Roles.IsUserInRole(LoginName, "ChatAdmin")
                If IsUserInRole Then
                    Return True
                Else
                    Return False
                End If
     
            End Function
     
    Hope this helps.
View Complete Thread