Subject: A doubt in the EditRole.aspx.cs?
Posted By: allanhu Post Date: 11/12/2004 8:46:53 AM
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)AccountsPermissions.UpdateRoles))
            {
                Response.Write("You don't have sufficient permission to be using this page.");
                Response.End();
            }
            
            if (!Page.IsPostBack)
            {
                DoInitialDataBind();
            }
        }

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

Who can tell me?



Reply By: seanmayhew Reply Date: 11/13/2004 4:55:56 PM
That casts the default context.user into the principal object created with the file


Go to topic 21940

Return to index page 717
Return to index page 716
Return to index page 715
Return to index page 714
Return to index page 713
Return to index page 712
Return to index page 711
Return to index page 710
Return to index page 709
Return to index page 708