summaryrefslogtreecommitdiffstats
path: root/web/react/stores/user_store.jsx
diff options
context:
space:
mode:
authorralder <ralder@yandex.ru>2015-07-15 09:03:28 -0700
committerralder <ralder@yandex.ru>2015-07-16 07:20:48 -0700
commit56db6ad08cf23dbdcee326fa39bda8bcdcdecf9e (patch)
treed5df6a7058441d1fdff2d6f7bb47aeacf86f6765 /web/react/stores/user_store.jsx
parentb236079d936e7f7af648b362d11b491fc0a2c428 (diff)
downloadchat-56db6ad08cf23dbdcee326fa39bda8bcdcdecf9e.tar.gz
chat-56db6ad08cf23dbdcee326fa39bda8bcdcdecf9e.tar.bz2
chat-56db6ad08cf23dbdcee326fa39bda8bcdcdecf9e.zip
remove admin's ability to manage members of default channel (fixes #172)
Diffstat (limited to 'web/react/stores/user_store.jsx')
-rw-r--r--web/react/stores/user_store.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/stores/user_store.jsx b/web/react/stores/user_store.jsx
index 93ddfec70..dd207ca80 100644
--- a/web/react/stores/user_store.jsx
+++ b/web/react/stores/user_store.jsx
@@ -177,7 +177,7 @@ var UserStore = assign({}, EventEmitter.prototype, {
},
getCurrentMentionKeys: function() {
var user = this.getCurrentUser();
- if (user.notify_props && user.notify_props.mention_keys) {
+ if (user && user.notify_props && user.notify_props.mention_keys) {
var keys = user.notify_props.mention_keys.split(',');
if (user.full_name.length > 0 && user.notify_props.first_name === "true") {