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

Commit 77f0b54c authored by Sudheer Shanka's avatar Sudheer Shanka Committed by android-build-merger
Browse files

DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles....

DO NOT MERGE: Allow apps with CREATE_USERS permission to call UM.getProfiles. am: 8a8d7e79 am: 2349d0de
am: 7559673a

Change-Id: I874a78978c631ed3060fcac1547b261537045d8c
parents 49f14fa7 7559673a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ public class UserManagerService extends IUserManager.Stub {
    @Override
    public List<UserInfo> getProfiles(int userId, boolean enabledOnly) {
        if (userId != UserHandle.getCallingUserId()) {
            checkManageUsersPermission("getting profiles related to user " + userId);
            checkManageOrCreateUsersPermission("getting profiles related to user " + userId);
        }
        final long ident = Binder.clearCallingIdentity();
        try {