Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Changing a users User Role at runtime
Message
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01045366
Message ID:
01047379
Vues:
17
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform