View Single Post
  #1 (permalink)  
Old November 12th, 2004, 09:46 AM
allanhu allanhu is offline
Authorized User
Join Date: Oct 2004
Location: , , .
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default A doubt in the EditRole.aspx.cs?

There is a function in the EditRole.aspx.cs

private void Page_Load(object sender, System.EventArgs e)
            // Put user code to initialize the page here
            PhilePrincipal currentPrincipal = (PhilePrincipal)Context.User;
            if (!currentPrincipal.HasPermission((int)AccountsPerm issions.UpdateRoles))
                Response.Write("You don't have sufficient permission to be using this page.");

            if (!Page.IsPostBack)

I can't understand what is about with the "(PhilePrincipal)Context.User"

Who can tell me?