d80f80f386
It seems to be better to check for required permission later, when the button to install the update is actually being displayed. Credit goes to Dan Poltawski for suggesting this.