https://bugzilla.wikimedia.org/show_bug.cgi?id=38709
Web browser: ---
Bug #: 38709
Summary: $wgEmailConfirmToEdit = true influences behavior of
$oTitle->userCan()
Product: MediaWiki
Version: 1.17.4
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: normal
Priority: Unprioritized
Component: Page protection
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
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 expect for 'createaccount'.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l