This is a bit of a puzzler. I have the following code:
protected override void Child_Create() { using (BypassPropertyChecks) { LoadProperty(OrderGuidProperty, Guid.NewGuid()); LoadProperty(OrderDateProperty, DateTime.Now); // Must create to a valid OfficeID if (HCSecurity.ApplicationID == HCSecurity.APPID_HCR) { LoadProperty(OfficeIDProperty, AccessROList.GetAccessROListCurrentUser().Where(e => e.Role == HCRRoles.ORDER_UPDATE).FirstOrDefault().OfficeID); } base.Child_Create(); CheckObjectRules(); } }
At the end of execution, all the values that were loaded in the LoadProperties are restored to the defaults. Is there anything in the BypassProperties that will rollback values?
Soooooooooooo, it seems I found something else that caused an authorizaion rule to trip. In the above create statement, I forgot to set another property. I solved the problem when I added the missing property.
I apologize!
Copyright (c) Marimer LLC