Stephan Muggli | 26 Jul 2012 13:42

$wgEmailConfirmToEdit = true infulences behavior of $oTitle->usercan()

Hello MediaWiki Team,

I think I found a bug in the method userCan() of the Title object. We often use userCan( 'read' ) to ensure that
the user is allowed to read the page or that some context is displayed like an extension. If
$wgEmailConfirmToEdit is set to true, the behavior of userCan() isn't as expected. Every user, group
doesn't matter, who doesn't have a confirmed E-Mail address fails in this check, because in the method
checkUserBlock() the error 'confirmedittext' is added to the errors array. The documentation of this
method says this check is done to 'Check that the user isn't blocked from editting', but this error is set on
every action.

Should I add this bug to the bugtracker?

Best regards,

Stephan Muggli
Social Web Technologien,
Softwareentwicklung,
Support
Hallo Welt! - Medienwerkstatt GmbH
______________________________

Untere Bachgasse 15
93047 Regensburg

Tel.  +49 (0) 941 - 66 0 80-181
Fax   +49 (0) 941 - 66 0 80-189

www.hallowelt.biz
muggli <at> hallowelt.biz<mailto:muggli <at> hallowelt.biz>

(Continue reading)

Mark A. Hershberger | 26 Jul 2012 14:56
Gravatar

Re: $wgEmailConfirmToEdit = true infulences behavior of $oTitle->usercan()

On 7/26/2012 7:42 AM, Stephan Muggli wrote:
> Should I add this bug to the bugtracker?

It sounds like a bug to me.  Please file it in bugzilla.

--

-- 
What is normal? Normal is yesterday and last week and
  last month taken together.
                       -- Snuff, Terry Pratchett

Gmane