From 1b385bba2f5501843b614695e8cba7dfb318317f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Sun, 23 Aug 2015 19:56:03 +0200 Subject: [PATCH] FIX: revision history broken for anon --- app/assets/javascripts/discourse/controllers/history.js.es6 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/controllers/history.js.es6 b/app/assets/javascripts/discourse/controllers/history.js.es6 index b0588750f..0a3d50434 100644 --- a/app/assets/javascripts/discourse/controllers/history.js.es6 +++ b/app/assets/javascripts/discourse/controllers/history.js.es6 @@ -61,12 +61,12 @@ export default Ember.Controller.extend(ModalFunctionality, { @computed('model.previous_hidden') displayShow(prevHidden) { - return prevHidden && this.currentUser.get('staff'); + return prevHidden && this.currentUser && this.currentUser.get('staff'); }, @computed('model.previous_hidden') displayHide(prevHidden) { - return !prevHidden && this.currentUser.get('staff'); + return !prevHidden && this.currentUser && this.currentUser.get('staff'); }, isEitherRevisionHidden: Ember.computed.or("model.previous_hidden", "model.current_hidden"),