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

Commit 53d41474 authored by Sudheer Shanka's avatar Sudheer Shanka
Browse files

Allow apps with CREATE_USERS permission to create restricted users.

Bug: 29189712
Change-Id: I0f2677adddb22c11cb5a3e38763b0967d9cbd541
parent 8e3a16ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2265,7 +2265,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;