Post

2 followers Follow
0
Avatar

Do not allow manager / owner to change PM

I'm trying to set up a validation that will not allow the PM to be changed by the same level manager or owner (but still be changeable by higher level PM/owner/manager). I can't seem to get that. I have the following:
ischanged($projectManager) && not (isNull(getLInk('ManagerResourceLink',currentObject(),CurrentUser())) && not (currentUser() = $projectmanager ) && not (currentUser() =$manager))

but it is failing on the trickle down permissions from higher level managers (meaning, they can't change a sub project PM).

What am I missing?

Ariel Rak Answered

Official comment

Avatar

Hi Ariel,

Please try the following syntax and let me know if that's working for you:
ischanged($projectManager) && CurrentUser() <> $ProjectManager && not HasRole('Manager',$ParentProject,CurrentUser())

Good luck!
Tamir

Tamir Avital
Comment actions Permalink

Please sign in to leave a comment.

2 comments

0
Avatar

I don't think this will work, since our project structure is more than two deep. I want to maintain all the regular hierarchy permissions, just ensure same level Owner and Managers cannot update that level's PM.

Ariel Rak 0 votes
Comment actions Permalink