mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-29 07:41:13 +00:00
Fixing canPost check
This commit is contained in:
parent
03173faa5c
commit
2b87596fbd
1 changed files with 2 additions and 1 deletions
|
@ -537,7 +537,8 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
||||||
get canPost(): boolean {
|
get canPost(): boolean {
|
||||||
return (
|
return (
|
||||||
!this.props.community_view.community.posting_restricted_to_mods ||
|
!this.props.community_view.community.posting_restricted_to_mods ||
|
||||||
(this.canMod && this.canAdmin)
|
this.canMod ||
|
||||||
|
this.canAdmin
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue