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

Commit fc8e6c25 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 am: 59245383

am: 59348dc3

Change-Id: I10194ddb5f93f2af4a78dcbd6c3496df1cbc823e
parents c0d60bcb 59348dc3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -553,7 +553,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();
        }