Oct 16, 2012 at 10:04 PM
Edited Oct 16, 2012 at 10:53 PM
For those interested; I added support for it (since not knowing how) by:
Modfying the "Editor" function in the "/Core/Common/OwnerEditor/OwnerEditorDriver.cs" file to update the owner if it's different than the currently logged in user.
I did this in two places; to handle an admin user versus a non-admin user.
If the TryCheckAccess returns false; then I used a condition to check to see if the updater is null. If the updater is NOT null; then I set the part.Owner = currentUser.
Since the above will not execute for an Admin user (because it doesn't fail).
I put a line of code after the "TryUpdateModel" - which transfers the edit box values; to then modify what the new model.Owner is to the currentUser.UserName. Now that the two values may be different - it will properly update the part.Owner.
Now I can accurately see who has been making edits.
One optimization could be that instead of setting model.Owner to the currentUser.UserName; you can just set the part.Owner to currentUser; now the system will not have to lookup an already known valid user.
thanks - let me know if there's a better way.