Example AddObjectAuthorizationRules in 4.10 samples?

Example AddObjectAuthorizationRules in 4.10 samples?

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


JCardina posted on Wednesday, February 16, 2011

I must be going blind but I can't seem to find usage of AddObjectAuthorizationRules() in *any* of the 4.10 samples.  Is there an example in there? 

JonnyBee replied on Wednesday, February 16, 2011

Hi,

Look at ActionExtenderSample, ex:


        protected static void AddObjectAuthorizationRules()
        {
            BusinessRules.AddRule(typeof(OrderDetailCollection), new Csla.Rules.CommonRules.IsInRole(AuthorizationActions.GetObject, ("user")));
        }

Copyright (c) Marimer LLC