Hello Brian,
I'm not sure I understand the requirement of not using the
UrlAuthorizationModule. Couldn't you put the following code in your page to
determine if the current user has access to the resource in the virtual path
parameter using the built-in UrlAuthorizationModule class?
if (UrlAuthorizationModule.CheckUrlAccessForPrincipal ("~/BlogIt.aspx", User,
"get"))
{
Label1.Text = "You may blog";
}
--
brians
http://www.limbertech.com
"Brian Vallelunga" wrote:
Is there any way, from an asp.net page to find out if a user is allowed
to view some random path based upon their credentials? Obviously this
gets done automatically in the UrlAuthorizationModule, but I have a
need to check an authorization from a page. Yeah, it's a bit weird, but
is it doable?
Basically, what I want is something like:
bool IsUserAllowedAccess(path, user)
Thanks,
Brian