mirror of
https://github.com/wassname/talk.git
synced 2026-08-02 13:10:23 +08:00
Remove canChangeStatus condition (#2631)
This commit is contained in:
committed by
Wyatt Johnson
parent
0fbfdac846
commit
b0e0ba6633
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user