LPS-46258

the new boolean parameter is used to determine whether we should check the permissions for the user being edited, or for the user doing the editing