Only emit permissions hook for files and and include path
Merge pull request #3980 from owncloud/try-permissions-hook-again

Add update permissions hook to sharing