{"action":"created","issue":{"url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/157","repository_url":"https://api.github.com/repos/MarimerLLC/cslaforum","labels_url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/157/comments","events_url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/157/events","html_url":"https://github.com/MarimerLLC/cslaforum/issues/157","id":140214732,"number":157,"title":"Suppressing authorization of child object properties in collection","user":{"login":"j055","id":6011428,"avatar_url":"https://avatars.githubusercontent.com/u/6011428?v=3","gravatar_id":"","url":"https://api.github.com/users/j055","html_url":"https://github.com/j055","followers_url":"https://api.github.com/users/j055/followers","following_url":"https://api.github.com/users/j055/following{/other_user}","gists_url":"https://api.github.com/users/j055/gists{/gist_id}","starred_url":"https://api.github.com/users/j055/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j055/subscriptions","organizations_url":"https://api.github.com/users/j055/orgs","repos_url":"https://api.github.com/users/j055/repos","events_url":"https://api.github.com/users/j055/events{/privacy}","received_events_url":"https://api.github.com/users/j055/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-11T15:35:54Z","updated_at":"2016-03-13T20:59:34Z","closed_at":"2016-03-13T20:59:34Z","body":"Hi\r\n\r\nI often find a need to update sibling properties based on another child's property changes. The example below is a typical implementation to do this. The problem I have is when one or more properties have authorization rules. Basically I want to know if there's a way to bypass the authorization checks in the same way we can suppress rule checking.\r\n\r\n```\r\n        protected override void OnChildChanged(ChildChangedEventArgs e)\r\n        {\r\n            var obj = e.ChildObject as PhoneNumber;\r\n            if (obj != null && e.PropertyChangedArgs?.PropertyName == nameof(PhoneNumber.IsPrimary))\r\n            {\r\n                ((ICheckRules)obj).SuppressRuleChecking();\r\n                if (obj.IsPrimary)\r\n                {\r\n                    var list = this;\r\n                    foreach (var item in list.Where(item => !ReferenceEquals(item, obj)))\r\n                    {\r\n                        item.IsPrimary = false;\r\n                    }\r\n                }\r\n                ((ICheckRules)obj).ResumeRuleChecking();\r\n            }\r\n\r\n            base.OnChildChanged(e);\r\n        }\r\n```\r\n\r\nOr is there a way to access the data using a ReadProperty method like that provided in a business rule? \r\n\r\nThanks\r\nAndrew\r\n"},"comment":{"url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/comments/196052348","html_url":"https://github.com/MarimerLLC/cslaforum/issues/157#issuecomment-196052348","issue_url":"https://api.github.com/repos/MarimerLLC/cslaforum/issues/157","id":196052348,"user":{"login":"j055","id":6011428,"avatar_url":"https://avatars.githubusercontent.com/u/6011428?v=3","gravatar_id":"","url":"https://api.github.com/users/j055","html_url":"https://github.com/j055","followers_url":"https://api.github.com/users/j055/followers","following_url":"https://api.github.com/users/j055/following{/other_user}","gists_url":"https://api.github.com/users/j055/gists{/gist_id}","starred_url":"https://api.github.com/users/j055/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/j055/subscriptions","organizations_url":"https://api.github.com/users/j055/orgs","repos_url":"https://api.github.com/users/j055/repos","events_url":"https://api.github.com/users/j055/events{/privacy}","received_events_url":"https://api.github.com/users/j055/received_events","type":"User","site_admin":false},"created_at":"2016-03-13T20:59:34Z","updated_at":"2016-03-13T20:59:34Z","body":"It appears ```ICheckRules.SuppressRuleChecking``` can do what I need. "}}