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

Commit 59245383 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: I8025b2876167e8f39046bbe65463a2225ac1ecd1
parents e6e257f4 74680913
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -548,7 +548,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();
        }