Changing CanEditObject After loaded

Changing CanEditObject After loaded

Old forum URL:

nj609eagle posted on Monday, December 20, 2010

i have a person object.  This person Object has the Shared function of CanEditObject.  This is working just fine using the permissions/roles for the currentuser.   

However, this permission: PERMISSION_PERSON_EDIT_DEMOGRAPHICS, sometimes need to be overridden based on values returned within the object.  So after the object is loaded, I need to check if the Person is a Staff Person or a Consultant.  If they are either one of these, the only users that can edit the data are those with: PERMISSION_PERSON_EDIT_OTHER_STAFF, or if the current user, is the person being loaded.

How can I change the shared permission results with the results I need after the object is loaded?

Copyright (c) Marimer LLC