Skip to content

Commit

Permalink
fix: comment fail error #57
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Dec 5, 2020
1 parent a6589b5 commit 6036351
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/server/src/logic/comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ module.exports = class extends Base {
await super.__before();

const {type, path} = this.get();
if(this.isGet && (type !== 'list' || path)) {
const isAllowedGet = this.isGet && (type !== 'list' || path);
if(this.isPost || isAllowedGet) {
return;
}

Expand Down

0 comments on commit 6036351

Please sign in to comment.