updated the share function to use the new permissions API

swapped the audit.share function body to use the permissions api for sharing.