comments added to getCurrentUserCanLeaveProjectInternal