diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2016-07-06 13:52:28 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-07-06 13:52:28 -0400 |
commit | 1a3f952c56ba080b5eb3913ba579680afb98089f (patch) | |
tree | 7981fd83a2da54b7453058879aa78b32ad2dae3c /webapp/components/backstage | |
parent | fd880ad047d7bb199115c2000a85c0e0ec3aedfa (diff) | |
download | chat-1a3f952c56ba080b5eb3913ba579680afb98089f.tar.gz chat-1a3f952c56ba080b5eb3913ba579680afb98089f.tar.bz2 chat-1a3f952c56ba080b5eb3913ba579680afb98089f.zip |
PLT-3518/PLT-3519 Custom emoji followup (#3507)
* Fixed emoji list filter when full name or nickname are enabled
* Changed custom emoji list to only be visible if the user can create custom emoji
Diffstat (limited to 'webapp/components/backstage')
-rw-r--r-- | webapp/components/backstage/components/backstage_sidebar.jsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webapp/components/backstage/components/backstage_sidebar.jsx b/webapp/components/backstage/components/backstage_sidebar.jsx index a17d830b0..ea0849c8a 100644 --- a/webapp/components/backstage/components/backstage_sidebar.jsx +++ b/webapp/components/backstage/components/backstage_sidebar.jsx @@ -4,6 +4,7 @@ import React from 'react'; import TeamStore from 'stores/team_store.jsx'; +import * as Utils from 'utils/utils.jsx'; import BackstageCategory from './backstage_category.jsx'; import BackstageSection from './backstage_section.jsx'; @@ -18,7 +19,7 @@ export default class BackstageSidebar extends React.Component { } renderCustomEmoji() { - if (window.mm_config.EnableCustomEmoji !== 'true') { + if (window.mm_config.EnableCustomEmoji !== 'true' || !Utils.canCreateCustomEmoji(this.props.user)) { return null; } @@ -44,7 +45,7 @@ export default class BackstageSidebar extends React.Component { return null; } - if (window.mm_config.RestrictCustomEmojiCreation !== 'all' && !TeamStore.isTeamAdmin(this.props.user.id, this.props.team.id)) { + if (window.mm_config.EnableOnlyAdminIntegrations !== 'false' && !TeamStore.isTeamAdmin(this.props.user.id, this.props.team.id)) { return null; } |