<commit_before>const debug = require('@tryghost/debug')('api:v3:utils:validators:input:updateSetup');
const i18n = require('../../../../../../shared/i18n');
const errors = require('@tryghost/errors');

module.exports = {
    updateSetup(apiConfig, frame) {
        debug('resetPassword');

        if (!frame.options.context || !frame.options.context.user) {
            throw new errors.NoPermissionError({message: i18n.t('errors.api.authentication.notTheBlogOwner')});
        }
    }
};<commit_msg>Replaced i18n.t w/ tpl in core/server/api/v3/utils/validators/input/setup.js (#13534)<commit_after>const debug = require('@tryghost/debug')('api:v3:utils:validators:input:updateSetup');
const tpl = require('@tryghost/tpl');
const errors = require('@tryghost/errors');

const messages = {
    notTheBlogOwner: 'You are not the site owner.'
};

module.exports = {
    updateSetup(apiConfig, frame) {
        debug('resetPassword');

        if (!frame.options.context || !frame.options.context.user) {
            throw new errors.NoPermissionError({message: tpl(messages.notTheBlogOwner)});
        }
    }
};
{'fraction_non_alphanumeric': 0.17222723174030657, 'fraction_numerical': 0.014427412082957619, 'mean_word_length': 3.8260869565217392, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6074429', 'n_tokens_mistral': 361, 'n_tokens_neox': 347, 'n_words': 55}