diff options
author | =Corey Hulen <corey@hulen.com> | 2015-09-17 22:00:33 -0700 |
---|---|---|
committer | =Corey Hulen <corey@hulen.com> | 2015-09-17 22:00:33 -0700 |
commit | 804b696bdc7d0b68701ce80e6ff5fba7ff3677c3 (patch) | |
tree | 7ba0acb7505b32800e9d1bfab66b5fe62c42beb3 /web/react/components/channel_invite_modal.jsx | |
parent | 44714dfcb18b9a393dc34be3c182b0c092eec28a (diff) | |
download | chat-804b696bdc7d0b68701ce80e6ff5fba7ff3677c3.tar.gz chat-804b696bdc7d0b68701ce80e6ff5fba7ff3677c3.tar.bz2 chat-804b696bdc7d0b68701ce80e6ff5fba7ff3677c3.zip |
PLT-11 adding config for logs to UI
Diffstat (limited to 'web/react/components/channel_invite_modal.jsx')
-rw-r--r-- | web/react/components/channel_invite_modal.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/channel_invite_modal.jsx b/web/react/components/channel_invite_modal.jsx index 5feeb4e88..82fc51184 100644 --- a/web/react/components/channel_invite_modal.jsx +++ b/web/react/components/channel_invite_modal.jsx @@ -121,7 +121,7 @@ export default class ChannelInviteModal extends React.Component { var currentMember = ChannelStore.getCurrentMember(); var isAdmin = false; if (currentMember) { - isAdmin = currentMember.roles.indexOf('admin') > -1 || UserStore.getCurrentUser().roles.indexOf('admin') > -1; + isAdmin = utils.isAdmin(currentMember.roles) || utils.isAdmin(UserStore.getCurrentUser().roles); } var content; |