Fix isAuthorized call from production merge