From 450b56c1bd428115f66d6f0bf87691e50aaaaffa Mon Sep 17 00:00:00 2001
From: Stas Vovk <stas@vovk.me>
Date: Tue, 13 Oct 2015 13:20:56 +0300
Subject: replaced constructions like user.roles === 'admin' by
 Utils.isAdmin(user.roles) in manage members

---
 web/react/components/member_list_team_item.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'web/react/components/member_list_team_item.jsx')

diff --git a/web/react/components/member_list_team_item.jsx b/web/react/components/member_list_team_item.jsx
index f67952bff..3af1d3800 100644
--- a/web/react/components/member_list_team_item.jsx
+++ b/web/react/components/member_list_team_item.jsx
@@ -82,9 +82,9 @@ export default class MemberListTeamItem extends React.Component {
         const timestamp = UserStore.getCurrentUser().update_at;
 
         if (user.roles.length > 0) {
-            if (user.roles.indexOf('system_admin') > -1) {
+            if (Utils.isSystemAdmin(user.roles)) {
                 currentRoles = 'System Admin';
-            } else if (user.roles === 'admin') {
+            } else if (Utils.isAdmin(user.roles)) {
                 currentRoles = 'Team Admin';
             } else {
                 currentRoles = user.roles.charAt(0).toUpperCase() + user.roles.slice(1);
-- 
cgit v1.2.3-1-g7c22

