FIX: revision history broken for anon
This commit is contained in:
parent
d418c4cfc0
commit
1b385bba2f
|
@ -61,12 +61,12 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
||||||
|
|
||||||
@computed('model.previous_hidden')
|
@computed('model.previous_hidden')
|
||||||
displayShow(prevHidden) {
|
displayShow(prevHidden) {
|
||||||
return prevHidden && this.currentUser.get('staff');
|
return prevHidden && this.currentUser && this.currentUser.get('staff');
|
||||||
},
|
},
|
||||||
|
|
||||||
@computed('model.previous_hidden')
|
@computed('model.previous_hidden')
|
||||||
displayHide(prevHidden) {
|
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"),
|
isEitherRevisionHidden: Ember.computed.or("model.previous_hidden", "model.current_hidden"),
|
||||||
|
|
Loading…
Reference in New Issue