Fix file owner and account name check ignore case.

This commit is contained in:
A117870935 2023-04-28 00:48:10 +05:30
parent ba8a8a3a5b
commit 0c9ddf02f2

View file

@ -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