|
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
|