Page MenuHomePhabricator

cascadeprotected error message maybe duplicated
Closed, InvalidPublic

Description

When a template is used in a page which is autoconfirmed-cascade protected and in a page which is sysop-cascade protected than the error message for unprivilieged users on edit page is shown duplicated:

uselang=qqx:
(permissionserrorstext-withaction: 2, (action-edit))
(cascadeprotected: 2, * Cascade-autoconfirmed

  • Cascade-sysop

)
(cascadeprotected: 2, * Cascade-autoconfirmed

  • Cascade-sysop

)

In LocalSettings.php:
$wgCascadingRestrictionLevels = array( 'autoconfirmed', 'sysop' );


Version: 1.22.0
Severity: minor

Details

Reference
bz58230

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:35 AM
bzimport set Reference to bz58230.
bzimport added a subscriber: Unknown Object (MLST).

The example is for a user without 'editsemiprotected', but for a user with 'editsemiprotected' the list is:

uselang=qqx:
(permissionserrorstext-withaction: 1, (action-edit))
(cascadeprotected: 2, * Cascade-autoconfirmed

  • Cascade-sysop

)

Which is also wrong, because the user only needs the information, that Cascade-sysop is the problem for him.

Better is when the user will see 'cascadeprotectedwarning' with the page for which he has permission and the above for the page without. The edit page should mention all pages which gives the cascade protection to this page.

Ammarpad subscribed.

No longer valid