mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 09:36:19 -05:00
FIX: revision history broken for anon
This commit is contained in:
parent
d418c4cfc0
commit
1b385bba2f
1 changed files with 2 additions and 2 deletions
|
@ -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"),
|
||||
|
|
Loading…
Reference in a new issue