|
@@ -80,7 +80,7 @@ module.exports = (crowi) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// code below checks permission at channel level
|
|
// code below checks permission at channel level
|
|
|
- const fromChannel = req.body.channel_name || payload.channel.name;
|
|
|
|
|
|
|
+ const fromChannel = req.body.channel_name; /* || payload.channel.name; */
|
|
|
[...channelsObject.keys()].forEach((commandName) => {
|
|
[...channelsObject.keys()].forEach((commandName) => {
|
|
|
const permittedChannels = channelsObject.get(commandName);
|
|
const permittedChannels = channelsObject.get(commandName);
|
|
|
// ex. search OR search:hogehoge
|
|
// ex. search OR search:hogehoge
|