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:
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() {
|
||||
|
||||
Reference in new issue
Block a user