Only call GetDeviceAttributeUpdatePermission for manual enrollment
GetDeviceAttributeUpdatePermission resolves the current user by OAuth token and then checks if that user may change the device's attributes. This is only sensible for manual enrollment where a user has actually authenticated and we have an OAuth token for the user. For enrollment modes without explicit user auth, such as attestation-based enrollment or enrollment-token-based enrollment, the enrolling user is not known so this check is not possible. For now, assume that device attributes should not be changed in this, as there is no way to find out if the enrolling user is permitted to change them. Bug: 942013 Change-Id: I5f7e08ca2af223d0dbcac3839c6eb2b2f45e62b2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2566820 Commit-Queue: Pavol Marko <pmarko@chromium.org> Reviewed-by:Denis Kuznetsov [CET] <antrim@chromium.org> Cr-Commit-Position: refs/heads/master@{#834188}
Showing
Please register or sign in to comment