From 629d38e256702e17674321c5cd7c062bea358983 Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Mon, 19 Dec 2016 10:58:13 -0500
Subject: Removed usage of removed TeamStore method (#4785)

---
 webapp/utils/utils.jsx | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'webapp/utils/utils.jsx')

diff --git a/webapp/utils/utils.jsx b/webapp/utils/utils.jsx
index a96c791c7..7f9af571f 100644
--- a/webapp/utils/utils.jsx
+++ b/webapp/utils/utils.jsx
@@ -1203,10 +1203,8 @@ export function canCreateCustomEmoji(user) {
         return false;
     } else if (window.mm_config.RestrictCustomEmojiCreation === 'admin') {
         // check whether the user is an admin on any of their teams
-        for (const member of TeamStore.getTeamMembers()) {
-            if (isAdmin(member.roles)) {
-                return true;
-            }
+        if (TeamStore.isTeamAdminForAnyTeam()) {
+            return true;
         }
 
         return false;
-- 
cgit v1.2.3-1-g7c22

