We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 54710
    • 2 Posts
    Hi for all!
    I have a problem using Quip commenting system. It all works except one thing. None of the registered users can delete his own post by clicking on Delete link. If I log in with my superuser account (i.e. account of MODx admin) I have a possibility to remove any post. Here is a link to my test site - modxtestsite.cx.ua/blog/sovetyi-agronomov/zapis-v-bloge-%E2%84%961-gruppa-sovetyi-agronomov.html It is in russian, but I think it will not be a problem to understand the meaning. I turned off activation via email, so anyone can register safely and try Quip. Or just use login test and password 123456.
    Here is the code of Quip call:
    [[!Quip@custom?
    &thread=`thread_[[*id]]`
    &replyResourceId=`[[*id]]`
    &removeThreshold=`10000`
    &allowRemove=`1`
    &requireAuth=`1`
    &tplComment=`tplComment`
    &tplComments=`tplComments`
    ]]
    
    [[!QuipReply? 
    &thread=`thread_[[*id]]`
    &requireAuth=`1`
    &tplAddComment=`tplAddComment`
    ]]

    Does anyone have an idea where the problem lies? I'm new to this so don't punch me too hard please. [ed. note: artik84 last edited this post 7 years, 10 months ago.]
      • 54710
      • 2 Posts
      In core/components/quip/controllers/web/Thread.php found code as follows:
      public function handleActions() {
              /* handle remove post */
              $removeAction = $this->getProperty('removeAction','quip-remove');
              if (!empty($_REQUEST[$removeAction]) && $this->hasAuth && $this->isModerator) {
                  $this->removeComment();
              }
              /* handle report spam */
              $reportAction = $this->getProperty('reportAction','quip_report');
              if (!empty($_REQUEST[$reportAction]) && $this->getProperty('allowReportAsSpam',true) && $this->hasAuth) {
                  $this->reportCommentAsSpam();
              }
          }

      That means that to delete a post one should be a moderator of the thread(&& $this->isModerator)? Is it a bug or feature?