Merge pull request #5066 from nextcloud/ezaquarii/fix-shared-by-null-glitch

Fix "Shared by null" glitch in file details view
This commit is contained in:
Tobias Kaminsky authored and GitHub committed 2020-01-06 14:55:07 +01:00
commit 32ebe691f9
1 file changed
+2 -1
@@ -325,7 +325,8 @@ public class UserAccountManagerImpl implements UserAccountManager {
@Override
public boolean accountOwnsFile(OCFile file, Account account) {
return !TextUtils.isEmpty(file.getOwnerId()) && account.name.split("@")[0].equals(file.getOwnerId());
final String ownerId = file.getOwnerId();
return TextUtils.isEmpty(ownerId) || account.name.split("@")[0].equals(ownerId);
}
public boolean migrateUserId() {