Fixing canPost check

This commit is contained in:
Dessalines 2022-04-29 14:23:42 -04:00
parent 03173faa5c
commit 2b87596fbd

View file

@ -537,7 +537,8 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
get canPost(): boolean {
return (
!this.props.community_view.community.posting_restricted_to_mods ||
(this.canMod && this.canAdmin)
this.canMod ||
this.canAdmin
);
}