Replace authorize() with isAuthorized()

This can only be merged when the pull request for the core is merged.