Fix share key finding algorithm in various cases
Instead of inaccurate pattern matching, use the list of users who we know have access to the file to build the list of share keys. This covers the following cases: - Move/copy files into a subfolder within a share - Unsharing from a user - Deleting files directlry / moving share keys to trashbin
Showing
- apps/files_encryption/hooks/hooks.php 7 additions, 1 deletionapps/files_encryption/hooks/hooks.php
- apps/files_encryption/lib/helper.php 31 additions, 15 deletionsapps/files_encryption/lib/helper.php
- apps/files_encryption/lib/keymanager.php 32 additions, 22 deletionsapps/files_encryption/lib/keymanager.php
- apps/files_encryption/tests/helper.php 56 additions, 0 deletionsapps/files_encryption/tests/helper.php
- apps/files_encryption/tests/hooks.php 70 additions, 35 deletionsapps/files_encryption/tests/hooks.php
- apps/files_encryption/tests/keymanager.php 47 additions, 13 deletionsapps/files_encryption/tests/keymanager.php
- apps/files_encryption/tests/share.php 57 additions, 0 deletionsapps/files_encryption/tests/share.php
- apps/files_encryption/tests/trashbin.php 73 additions, 16 deletionsapps/files_encryption/tests/trashbin.php
- apps/files_encryption/tests/util.php 10 additions, 6 deletionsapps/files_encryption/tests/util.php
- apps/files_trashbin/lib/trashbin.php 1 addition, 5 deletionsapps/files_trashbin/lib/trashbin.php
Loading
Please register or sign in to comment