mirror of
https://github.com/nextcloud/android.git
synced 2024-11-26 23:28:42 +03:00
Fix file owner and account name check ignore case.
This commit is contained in:
parent
ba8a8a3a5b
commit
0c9ddf02f2
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ public class UserAccountManagerImpl implements UserAccountManager {
|
|||
@Override
|
||||
public boolean accountOwnsFile(OCFile file, Account account) {
|
||||
final String ownerId = file.getOwnerId();
|
||||
return TextUtils.isEmpty(ownerId) || account.name.split("@")[0].equals(ownerId);
|
||||
return TextUtils.isEmpty(ownerId) || account.name.split("@")[0].equalsIgnoreCase(ownerId);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue