summaryrefslogtreecommitdiffstats
path: root/web/react/components/channel_invite_modal.jsx
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2015-09-18 18:11:01 -0400
committerHarrison Healey <harrisonmhealey@gmail.com>2015-09-18 18:11:01 -0400
commit679e20aa4b74b468c7e372c77219142599f2385d (patch)
tree544b2a5f932dc2a2cbd27a800fddcb4ce07b057e /web/react/components/channel_invite_modal.jsx
parent676f2a63999e51a03f2f57209ce4c9f106683da4 (diff)
parentcdf813f07b207c14bb9fa03f38d734b45e40823e (diff)
downloadchat-679e20aa4b74b468c7e372c77219142599f2385d.tar.gz
chat-679e20aa4b74b468c7e372c77219142599f2385d.tar.bz2
chat-679e20aa4b74b468c7e372c77219142599f2385d.zip
Merge pull request #709 from mattermost/PLT-11
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.jsx2
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;