add getPermissionForProject method. refs client #3335

add tests