Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Can't delete thread if I select tick box
This discussion is related to the Split / Merge (FE) addon.
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:
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?
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.
There was an error rendering this rich post.
Underdog - thanks for the reply.
Could you suggest what program would be best to do that search?
or grep alternatives.
If you are unlucky enough on be on windoze, I remember using a program called agent ransack
grep is your friend.
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
Thanks, but the issue was trying to find the text site wide.
The agent ransack program did the job perfectly.
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:
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.
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
And thanks a lot for posting your findings.
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?
are you a moderator as well as admin? the plugin is for moderators.
for version vanilla 220.127.116.11
I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.
Lucks like that bug in
applications/vanilla/controllers/class.moderationcontroller.phphas already been fixed in 2.1b1.