setting up roles?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HI I am looking at some C# code that seems to change a display based on user
roles, below is a small part of the code.
public bool IsInQCCRole()
{
return User.IsInRole(this.WebServer + "\\QCC");
}
Anyhow I want to test it and set different role levels and am currently
running the application on localhost. Just wondering if anyone nows how to
set up these roles?
thanks.
 
Why are you scoping your roles to the webserver's machine name? Typically
roles are logical users of your system ("Doctor", "Nurse", "Admin") and are
really application level semantics that shouldn't be concerned with the name
of the webserver.

-Brock
DevelopMentor
http://staff.develop.com/ballen
 
Hi thanks for the response. Actually I am looking at a program someone else
wrote that is not working correctly and am trying to debug it. Not sure what
they are doing with the server name. I think they are using windows account
user groups but not sure.
 
Back
Top