Merge "Allow apps with CREATE_USERS permission to call UM.getUserInfo." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
159c13801b
@@ -798,7 +798,7 @@ public class UserManagerService extends IUserManager.Stub {
|
||||
|
||||
@Override
|
||||
public UserInfo getUserInfo(int userId) {
|
||||
checkManageUsersPermission("query user");
|
||||
checkManageOrCreateUsersPermission("query user");
|
||||
synchronized (mUsersLock) {
|
||||
return userWithName(getUserInfoLU(userId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user