Skip to content

Commit

Permalink
Remove canChangeStatus condition (coralproject#2631)
Browse files Browse the repository at this point in the history
  • Loading branch information
cristiandean authored and wyattjoh committed Oct 15, 2019
1 parent 0fbfdac commit b0e0ba6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ const StoryStatusChangeContainer: FunctionComponent<Props> = props => {
[props.story.id, props.closeStory, props.openStory, props.story.status]
);

const canChangeStatus =
props.viewer.id !== props.story.id &&
can(props.viewer, Ability.CHANGE_STORY_STATUS);
const canChangeStatus = can(props.viewer, Ability.CHANGE_STORY_STATUS);

if (!canChangeStatus) {
return <StoryStatusText>{props.story.status}</StoryStatusText>;
Expand Down

0 comments on commit b0e0ba6

Please sign in to comment.