Файловый менеджер - Редактировать - /home/freeclou/app.optimyar.com/backend/node_modules/strapi-plugin-documentation/config/policies/index.js
Назад
'use strict'; module.exports = async (ctx, next) => { const pluginStore = strapi.store({ environment: '', type: 'plugin', name: 'documentation', }); const config = await pluginStore.get({ key: 'config' }); if (!config.restrictedAccess) { return await next(); } if (!ctx.session.documentation) { const querystring = ctx.querystring ? `?${ctx.querystring}` : ''; return ctx.redirect( `${strapi.config.server.url}${strapi.plugins.documentation.config['x-strapi-config'].path}/login${querystring}` ); } const isValid = await strapi.plugins['users-permissions'].services.user.validatePassword( ctx.session.documentation, config.password ); if (!isValid) { ctx.session.documentation = null; } // Execute the action. await next(); };
| ver. 1.4 |
Github
|
.
| PHP 8.1.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка