Vibrant discussion about CSLA .NET and using the framework to build great business applications.
I have a doubt. Is there a way to add an object authorization rule depending a property value?
I'm working in CSLA 3.6.
I'm trying to do the following:
Private Shared Sub AddObjectAuthorizationRules() AuthorizationRules.AllowGet(GetType(MyBO), "canget") AuthorizationRules.AllowCreate(GetType(MyBO), "canadd")
If MyStatus=Valid then
Obviously I'm getting an error because I'm trying to access a property inside a Shared method but I put it here trying to explain what I need.
Is there a way to reach this behavior?
Thanks a lot.
This is not supported in 3.6. Your option is to add custom Authorization check in the Save method of your BO and the DataPortal_Update/Insert method.
Jonny Bekkum, Norway
Thanks a lot!!!!!!!!
I've got it.