itizawa 6 년 전
부모
커밋
bdad40576d
1개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 4
      src/client/js/components/PageComment/Comment.jsx

+ 4 - 4
src/client/js/components/PageComment/Comment.jsx

@@ -57,15 +57,15 @@ class Comment extends React.Component {
     this.renderHtml(nextProps.comment.comment);
   }
 
-  checkPermissionToControlComment() {
-    return this.props.appContainer.isAdmin || this.isCurrentUserEqualsToAuthor();
-  }
-
   // not used
   setMarkdown(markdown) {
     this.renderHtml(markdown);
   }
 
+  checkPermissionToControlComment() {
+    return this.props.appContainer.isAdmin || this.isCurrentUserEqualsToAuthor();
+  }
+
   isCurrentUserEqualsToAuthor() {
     return this.props.comment.creator.username === this.props.appContainer.me;
   }