Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3e2e8962 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by android-build-merger
Browse files

Allow apps with CREATE_USERS permission to call UM.getProfiles.

am: 74680913

Change-Id: I902c70cb066e24002c639dc6b87d080e7bf1cae7
parents a4e616e0 74680913
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -555,7 +555,7 @@ public class UserManagerService extends IUserManager.Stub {
    public List<UserInfo> getProfiles(int userId, boolean enabledOnly) {
        boolean returnFullInfo = true;
        if (userId != UserHandle.getCallingUserId()) {
            checkManageUsersPermission("getting profiles related to user " + userId);
            checkManageOrCreateUsersPermission("getting profiles related to user " + userId);
        } else {
            returnFullInfo = hasManageUsersPermission();
        }