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

Commit 48ee87d4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

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

parents f6e3c9a5 53d41474
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;