Skip to content
Snippets Groups Projects
Commit 55f43f3b authored by chris's avatar chris
Browse files

if author don't add line height

parent 2f0d3697
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,8 @@ import {
TOCProvider
} from 'substance'
import {includes} from 'lodash'
import Comments from './panes/Comments/CommentBoxList'
import CommentsProvider from './panes/Comments/CommentsProvider'
import ContainerEditor from './ContainerEditor'
......@@ -106,7 +108,8 @@ class Editor extends ProseEditor {
contentPanelWithSplitPane
)
)
if (this.state.trackChangesView) el.addClass('track-changes-mode')
if (this.state.trackChangesView && !this.isAuthor()) el.addClass('track-changes-mode')
return el
}
......@@ -132,6 +135,12 @@ class Editor extends ProseEditor {
}
}
isAuthor () {
const author = includes(this.props.user.roles, 'author')
return author
}
scrollTo (nodeId) {
this.refs.contentPanel.scrollTo(nodeId)
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment