Merge "Allow apps with CREATE_USERS permission to call UM.getProfiles." into nyc-dev

This commit is contained in:
Sudheer Shanka
2016-07-29 21:50:39 +00:00
committed by Android (Google) Code Review

View File

@@ -548,7 +548,7 @@ public class UserManagerService extends IUserManager.Stub {
public List<UserInfo> getProfiles(int userId, boolean enabledOnly) {
boolean returnFullInfo = true;
if (userId != UserHandle.getCallingUserId()) {
checkManageUsersPermission("getting profiles related to user " + userId);
checkManageOrCreateUsersPermission("getting profiles related to user " + userId);
} else {
returnFullInfo = hasManageUsersPermission();
}