remove admin's ability to manage members of default channel (fixes #172)

Этот коммит содержится в:
ralder
2015-07-15 09:03:28 -07:00
родитель b236079d93
Коммит 56db6ad08c
8 изменённых файлов: 144 добавлений и 166 удалений

Просмотреть файл

@@ -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") {