Fixed issue #7689: error on setting survey permissions