diff --git a/app/assets/javascripts/discourse/controllers/history.js.es6 b/app/assets/javascripts/discourse/controllers/history.js.es6 index b0588750f95..0a3d504344a 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"),