Add posting restricted to mods (#642)
* Adding only mods can post. Fixes #641 * Fixing canPost check
This commit is contained in:
parent
d4ca2085ad
commit
2d0da58793
6 changed files with 49 additions and 17 deletions
|
@ -636,7 +636,8 @@ export class PostForm extends Component<PostFormProps, PostFormState> {
|
|||
let op = wsUserOp(msg);
|
||||
console.log(msg);
|
||||
if (msg.error) {
|
||||
toast(i18n.t(msg.error), "danger");
|
||||
// Errors handled by top level pages
|
||||
// toast(i18n.t(msg.error), "danger");
|
||||
this.state.loading = false;
|
||||
this.setState(this.state);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue