Skip to content

Commit e8ff980

Browse files
committed
enable posting new topics in dashboard for all roles
1 parent 7aa434e commit e8ff980

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

src/projects/detail/containers/FeedContainer.js

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,6 @@ class FeedView extends React.Component {
321321
const {currentUser, project, currentMemberRole, isCreatingFeed, error } = this.props
322322
const { feeds } = this.state
323323
const showDraftSpec = project.status === PROJECT_STATUS_DRAFT && currentMemberRole === PROJECT_ROLE_CUSTOMER
324-
const renderComposer = currentMemberRole === PROJECT_ROLE_COPILOT || currentMemberRole === PROJECT_ROLE_MANAGER
325324

326325
const renderFeed = (item) => {
327326
if ((item.spec || item.sendForReview) && !showDraftSpec) {
@@ -355,17 +354,15 @@ class FeedView extends React.Component {
355354
}
356355
return (
357356
<div>
358-
{ renderComposer &&
359-
<NewPost
360-
currentUser={currentUser}
361-
onPost={this.onNewPost}
362-
isCreating={isCreatingFeed}
363-
hasError={error}
364-
heading="NEW STATUS POST"
365-
onNewPostChange={this.onNewPostChange}
366-
titlePlaceholder="Share the latest project updates with the team"
367-
/>
368-
}
357+
<NewPost
358+
currentUser={currentUser}
359+
onPost={this.onNewPost}
360+
isCreating={isCreatingFeed}
361+
hasError={error}
362+
heading="NEW STATUS POST"
363+
onNewPostChange={this.onNewPostChange}
364+
titlePlaceholder="Share the latest project updates with the team"
365+
/>
369366
{ feeds.map(renderFeed) }
370367
</div>
371368
)

0 commit comments

Comments
 (0)