Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Changing a users User Role at runtime
Message
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01045366
Message ID:
01047379
Views:
18
Hi Kevin,

I've been working with Del Despain on this and I think I have encountered a problem.

First, let me make sure I understand the process a control goes through to check its security level.

1) RegisterSecurity() is called in the OnPreRender for the control.
2) mmUIHelper.RegisterSecurity(this); gets called next.
3) Then you get a reference to the mmBaseWebPage of the parent form
4) Check if GetAccessLevel() should be called.
5) Using the reference to the SecurityManager on the parent form call GetAccessLevel().

I think the problem is that the mmBaseWebPage of the parent form returns a new mmSecurityManager(), instead of using the Factory so my subclass of mmSecurityManager gets used instead of the default MM one.

Shouldn’t the factory be used here to create the SecurityManager ?

Is this the approach you suggested in your earlier response to this thread, or did I not understand you ?

Thanks for your help!
I appreciate it.

-Douglas Hammon.
Previous
Reply
Map
View

Click here to load this message in the networking platform