///
/// Authorize method sets the access requirement of a page.
///
public override void Authorize(string roles)
{
if ((roles == null) || (roles == ""))
{
// If no login requirement specified on the page, default it to require login
base.Authorize(BaseClasses.Utils.SystemUtils.ROLE_NOT_ANONYMOUS);
}
else
{
// Else, use the login requirement specified on the page.
base.Authorize(roles);
}
}
|