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

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

Merge \"Allow apps with CREATE_USERS permission to create restricted users.\" into nyc-dev

am: 48ee87d4

Change-Id: I3f66f1d5937ed29f62d687d1c0c6dcfa7d88637d
parents 7085bb34 48ee87d4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2296,7 +2296,7 @@ public class UserManagerService extends IUserManager.Stub {
     */
    @Override
    public UserInfo createRestrictedProfile(String name, int parentUserId) {
        checkManageUsersPermission("setupRestrictedProfile");
        checkManageOrCreateUsersPermission("setupRestrictedProfile");
        final UserInfo user = createProfileForUser(name, UserInfo.FLAG_RESTRICTED, parentUserId);
        if (user == null) {
            return null;