Merge "Allow apps with CREATE_USERS permission to call UM.getProfiles." into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b7c3ae1a86
@@ -548,7 +548,7 @@ public class UserManagerService extends IUserManager.Stub {
|
|||||||
public List<UserInfo> getProfiles(int userId, boolean enabledOnly) {
|
public List<UserInfo> getProfiles(int userId, boolean enabledOnly) {
|
||||||
boolean returnFullInfo = true;
|
boolean returnFullInfo = true;
|
||||||
if (userId != UserHandle.getCallingUserId()) {
|
if (userId != UserHandle.getCallingUserId()) {
|
||||||
checkManageUsersPermission("getting profiles related to user " + userId);
|
checkManageOrCreateUsersPermission("getting profiles related to user " + userId);
|
||||||
} else {
|
} else {
|
||||||
returnFullInfo = hasManageUsersPermission();
|
returnFullInfo = hasManageUsersPermission();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user