Trashbin app doesn't work with shared files
Should be the same problem and solution as the files_versions issue #1675
@karlitschek @icewind1991
For now we don't prevent/restore share relations.
If a user deletes a shared file he can only restore it for himself.
Exception: If the file was in a shared folder where the user has 'create' permissions. In this case the file will be restored in the same folder again, so that the owner and all recipients of the directories above will have access to the file again.
For OC6 we can think about if it is a good idea to also prevent share relations. I'm not sure at the moment, because between delete and restore also other thinks can happen (e.g. a user could get deleted which originally had access to the shared file)