@diglin I'm not sure about this one. Many admins hasn't default store with 'default' store code... is there any reason why getDefaultStoreView()->getCode() won't work?