It's all about the answers!

Ask a question

Operation Advisor - How to get a user's roles before the save?

Cliff Gardiner (92727) | asked Dec 19 '17, 7:04 a.m.

Hello all, further to this thread I thought I'd try and apply some control over what roles a user can award via Operation Advisors.  It seems there are two in play depending on what's being saved, the very similar operations being ProjectAreaSaveOperation or TeamAreaSaveOperation.

I can get all the roles available and the roles a user will have at the conclusion of a successful save from the getItems() method so I can see what a user's role list is being changed to, but I can't see what it's being changed from.

I thought getSavedItems() would provide what I'm after but this always returns nothing.  I have searched in vain through the sdk plugins but can't find anything helpful.  

Clearly I'm missing something - can anyone point me in the right direction?

Be the first one to answer this question!

Register or to post your answer.