Replace authorize() with isAuthorized()

This can only be merged when the pull request for the core is merged.
Reference: guytarded/forkcms@4b74267d1c4caf98adb888afed0097799e1cca6e