Skip to content

Commit

Permalink
fix(code-editor): admin should be able to edit bot config (#11339)
Browse files Browse the repository at this point in the history
  • Loading branch information
allardy committed Jan 28, 2022
1 parent bc9aae6 commit 248cec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/code-editor/src/views/full/SidePanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class PanelContent extends React.Component<Props> {
}

renderSectionConfig() {
if (!this.hasPermission('global.main_config') || !this.hasPermission('bot.bot_config')) {
if (!this.hasPermission('global.main_config') && !this.hasPermission('bot.bot_config')) {
return null
}

Expand Down

0 comments on commit 248cec7

Please sign in to comment.