Rollback has link to rollback in diff when not editrights to page
Closed, ResolvedPublic


Author: laaknor-wmfbugzilla

User with rollback-access has "rollback"-link to administrator-only pages when viewing diff. In history, the link is not displayed.

Tested on no.wikipedia, with MediaWiki:, User:xxx/monobook.js and protected pages for administrators only.

Clicking the link only gives error, but the link should not be displayed when the user does not have access to it.

Version: 1.13.x
Severity: normal


bzimport set Reference to bz14155.
bzimport added a subscriber: Unknown Object (MLST).
bzimport created this task.May 16 2008, 7:44 PM
Nakon added a comment.May 22 2008, 3:57 PM

Checks to see if a user can edit an article before generating a rollback link

I added getUserPermissionsErrors() from PageHistory.php

Attached: diff.txt

aaron added a comment.May 29 2008, 9:19 PM

Done in r35571

Add Comment