|
@@ -396,7 +396,7 @@ module.exports = (crowi) => {
|
|
|
* description: Succeeded to put CustomBotWithoutProxy permissions.
|
|
* description: Succeeded to put CustomBotWithoutProxy permissions.
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
- router.put('/without-proxy/update-permissions', async(req, res) => {
|
|
|
|
|
|
|
+ router.put('/without-proxy/update-permissions', loginRequiredStrictly, adminRequired, csrf, async(req, res) => {
|
|
|
const currentBotType = crowi.configManager.getConfig('crowi', 'slackbot:currentBotType');
|
|
const currentBotType = crowi.configManager.getConfig('crowi', 'slackbot:currentBotType');
|
|
|
if (currentBotType !== SlackbotType.CUSTOM_WITHOUT_PROXY) {
|
|
if (currentBotType !== SlackbotType.CUSTOM_WITHOUT_PROXY) {
|
|
|
const msg = 'Not CustomBotWithoutProxy';
|
|
const msg = 'Not CustomBotWithoutProxy';
|