Users running a non-download version of Vanilla (pulled from github), on branch release/2019.016 or master from the last 2 weeks should upgrade to release/2019.017 or latest master for security reasons. Downloaded official open sources releases are not affected.
Please upgrade here. These earlier versions are no longer being updated and have security issues.

Can't delete thread if I select tick box

This discussion is related to the Split / Merge (FE) addon.
whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator
edited January 2012 in Vanilla 2.0 - 2.8

If I check the tick box next to a thread I get the message:

Take Action: Delete/Merge

I can Merge (and Split) fine, but if I select 'Delete' I get the following error:

Permission Problem

You don't have permission to do that.

I can delete the thread if I use the options.

Any clues as to what I need to do?

Thanks.

Comments

  • Oh man... you need to look into the source code for this one.
    Find this piece of text:
    You don't have permission to do that then find in which specific cases you get that error message.

    It might be with just a delete action, which I assume.

    Maybe with a delete action from the options menu an extra token will be sent and with split / merge that token is forgotten.

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    Underdog - thanks for the reply.

    Could you suggest what program would be best to do that search?

  • x00x00 MVP
    edited January 2012

    grep

    or grep alternatives.

    If you are unlucky enough on be on windoze, I remember using a program called agent ransack

    grep is your friend.

    UnderDog
  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    cheers xOO

    I am indeed on Windows, so shall give it a go.

  • you can always ctrl-f in notepad, or whatever package you use to code php

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    Domos

    Thanks, but the issue was trying to find the text site wide.

    The agent ransack program did the job perfectly.

  • StumpyJoeStumpyJoe
    edited March 2013

    Hi, I can't tell from the above how this problem was answered. I also can't delete multiple messages using the split / merge option that pops up on the lower left when I check multiple discussions.

    I found "You don't have permission to do that" in two files:

    applications\dashboard\views\home\permission.php
    and
    library\core\functions.error.php

    Neither file is helpful in determining what might be the problem for why I can't delete multiple discussions. @whu606 what did you find to fix this problem? Thanks.

  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator

    @StumpyJoe

    Sorry, I never found out what was causing the issue, just how to find where the error message was.

  • I realized I asked this earlier, and I think I found the problem (by "I" I mean @peregrine).

    Line 291of applications/vanilla/controllers/class.moderationcontroller.php says
    $this->Permission('Vanilla.Comment.Delete', TRUE, 'Category', 'any');
    There is no vanilla.comment it SHOULD say
    $this->Permission('Vanilla.Comments.Delete', TRUE, 'Category', 'any');
    I made that little edit, and I'm able to delete multiple discussions just fine.

    You can read the other thread about this here

    whu606UnderDog
  • whu606whu606 I'm not a SuperHero; I just like wearing tights... Moderator
    edited March 2013

    @Stumpyjoe

    Nice one!

    And thanks a lot for posting your findings.

    UnderDog
  • All I see is a checkbox but nothing else. I can select as many checkboxes as I please but then what should happen? No popup no options no drop down list.

    What should happen after selecting few checkboxes?

  • peregrineperegrine MVP
    edited April 2013

    @Arifman
    are you a moderator as well as admin? the plugin is for moderators.

    for version vanilla 2.0.18.8
    http://vanillaforums.org/discussion/comment/177120/#Comment_177120

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

    UnderDog
  • Lucks like that bug in applications/vanilla/controllers/class.moderationcontroller.php has already been fixed in 2.1b1. :)

Sign In or Register to comment.