Merge "Added missing check for MANAGE_USERS" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
67a32c4991
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user