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

Commit 67a32c49 authored by Fyodor Kupolov's avatar Fyodor Kupolov Committed by Android (Google) Code Review
Browse files

Merge "Added missing check for MANAGE_USERS" into mnc-dev

parents e827c252 d4b26041
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -529,6 +529,7 @@ public class UserManagerService extends IUserManager.Stub {

    @Override
    public void setUserRestriction(String key, boolean value, int userId) {
        checkManageUsersPermission("setUserRestriction");
        synchronized (mPackagesLock) {
            if (!SYSTEM_CONTROLLED_RESTRICTIONS.contains(key)) {
                Bundle restrictions = getUserRestrictions(userId);