Closed (fixed)
Project:
Mollom
Version:
6.x-2.x-dev
Component:
Tests
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Jul 2011 at 18:30 UTC
Updated:
24 Apr 2014 at 17:13 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
aangel commentedI didn't want users to be able to report themselves either. The culprit is the logic in mollom.module here:
The "Omit reporting..." and subsequent line are not part of the original code.
Note that the assumption is that the user has the right to see the Report as Inappropriate form, mentioned in the first comment. It looked to me that to change that required that the User Cancelation form show up as part of the form configuration list (mollom_form_list) and that some logic be added to allow turning the reporting form off. I don't have a patch (sorry) but the line I added above ( if ($mollom_form_id == ...) ) is doing the job for me until a better mechanism is implemented.
Comment #2
Jiri Volf commentedsubscribing
Comment #3
markwk commentedNice work aangel. This makes sense and works nicely as a fix. I attached patch for 7.x-1.x branch.
Comment #5
markwk commentedWell obviously those tests will fail since this patch wants to prevent those actions in those situations... :)
Comment #6
sunThis is an extreme edge-case, and I doubt that it's worth to cater for it.
Specifically, I don't see what's ultimately wrong with having the Mollom feedback options in the confirmation form when you're canceling your own account.
The options only appear if you are able to moderate (administer) users in the first place. That's certainly a very small minority of all users on a site, and additionally, those users (community moderators/administrators) are very unlikely to cancel their own account.
Even if they cancel their own account, there's technically nothing wrong with allowing them report themselves as inappropriate... Of course, doing so will negatively affect their own reputation across Mollom-protected sites. But is it wrong? Not really.
In the end, I don't see sufficient reasons for introducing code and complexity to account for this rare, special case.
Comment #7
markwk commentedYou're right. During the test process, I was using an admin account. A normal user won't have access to this reporting option anyways.
Comment #8
troybthompson commentedJust for clarification, it's not just on admin accounts. When signed in as a regular user and I try to cancel my account, it asks me to report myself. They have permissions to "cancel own user account" but not "select method for canceling own account". I'm using Mollom 7.x-1.1
Comment #9
sunComment #10
troybthompson commentedWith all due respect, is it possible to at least make the default to be "Do Not Report"? Like I say, it's not "extreme edge-case" it's any user wanting to cancel their account, not just administrators.
If I have a user that is no longer interested in my site, or worse, upset with something that happened on the site, their wishes should be honored respectfully. It seems insult to injury to not only point the blame at them and ask if they're a spammer, etc but to have the default saying that they were taunting, which could prevent them from registering at other Mollom sites when they're just trying to exit.
Am I understanding this correctly, or am I missing some sort of setting?
Comment #11
sun@troybthompson: That bug has been fixed in 2.x already and will be part of the upcoming stable release.
And apparently, you're right. :) Attached patch proves in a test that this is indeed bogus.
Comment #13
sunAttached patch fixes the issue.
Comment #14
sunThanks for reporting, reviewing, and testing! Committed to 7.x-2.x.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.
This needs to be backported to 6.x-2.x, but that... won't be so easy.
Comment #15
sunBackported to D6.
Comment #16
sunCommitted to 6.x-2.x.
Comment #17
troybthompson commentedUpgraded and 2.x version works great, thanks!