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/admin_console/user_item.jsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'web/react/components/admin_console/user_item.jsx')

diff --git a/web/react/components/admin_console/user_item.jsx b/web/react/components/admin_console/user_item.jsx
index 981290c91..395e22e6c 100644
--- a/web/react/components/admin_console/user_item.jsx
+++ b/web/react/components/admin_console/user_item.jsx
@@ -111,9 +111,9 @@ export default class UserItem extends React.Component {
         const user = this.props.user;
         let currentRoles = 'Member';
         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

