Merge "Only reset global restriction owner on DO->PO for the right user" into nyc-dev am: 2002061f34
am: 6b9371ceef
* commit '6b9371ceef5c86c9633ac30aa507b45125aeea7f':
Only reset global restriction owner on DO->PO for the right user
Change-Id: I9c6c50902c4712da1ff114f75bd0f92c505bc4eb
This commit is contained in:
@@ -1014,9 +1014,13 @@ public class UserManagerService extends IUserManager.Stub {
|
||||
// in getUserRestrictionSource on who set local policies.
|
||||
mGlobalRestrictionOwnerUserId = userId;
|
||||
} else {
|
||||
// When profile owner sets restrictions it passes null global bundle and we reset
|
||||
// global restriction owner userId.
|
||||
mGlobalRestrictionOwnerUserId = UserHandle.USER_NULL;
|
||||
if (mGlobalRestrictionOwnerUserId == userId) {
|
||||
// When profile owner sets restrictions it passes null global bundle and we
|
||||
// reset global restriction owner userId.
|
||||
// This means this user used to have DO, but now the DO is gone and the user
|
||||
// instead has PO.
|
||||
mGlobalRestrictionOwnerUserId = UserHandle.USER_NULL;
|
||||
}
|
||||
}
|
||||
{
|
||||
// Update local.
|
||||
|
||||
Reference in New Issue
Block a user