BusinessRules \ AuthorizationRules in ReadOnlyListBase (CSLA 4.0)?

BusinessRules \ AuthorizationRules in ReadOnlyListBase (CSLA 4.0)?

Old forum URL: forums.lhotka.net/forums/t/9047.aspx


Geoff_Manning posted on Monday, June 07, 2010

I'm trying to add authorization rules to a read only list base and can't figure out how to set the authorization.  Is this an oversight or is there a different way to control authorization for readonly objects?

Geoff_Manning replied on Monday, June 07, 2010

Ok, I had a retard moment. But if anyone happens to read this, just to verify I'm on the right track: the authorization is handled by the underlying ReadOnlyBase objects that the list is a collection of, correct?

RockfordLhotka replied on Tuesday, June 08, 2010

The only authz rules that apply to lists are per-type rules. Those are added in a static AddObjectAuthorizationRules() method, just like they were in 3.8.

Geoff_Manning replied on Tuesday, June 08, 2010

Thank you so much, Rocky. I started using CSLA years ago and just started getting back into using it in a new project and am really rusty.

Copyright (c) Marimer LLC