#
Shortie
Hello All,
I'm trying to check security of a user in a normal ASPX page which I use as a popup to display an printer friendly version of a content part. I don't want the whole site included so I did not inherit the ModuleBase. I try something like this:
Thanks!
I'm trying to check security of a user in a normal ASPX page which I use as a popup to display an printer friendly version of a content part. I don't want the whole site included so I did not inherit the ModuleBase. I try something like this:
public partial class AFBReferencePrint : System.Web.UI.PageAs far as I can see the part this.User.Identity is not my Cuyaghoga user. How can I reference the Cuyahoga user and check his/her AccessLevel.
{
protected void Page_Load(object sender, EventArgs e)
{
if (((Cuyahoga.Core.Domain.User)this.User.Identity).HasPermission(AccessLevel.Authenticated))
{
pnlNotAvailable.Visible = false;
pnlPrint.Visible = true;
}
else
{
// Not authenticated, do not show print page
pnlNotAvailable.Visible = true;
pnlPrint.Visible = false;
}
}
}
Thanks!