Page MenuHomePhabricator

Read restriction support
Closed, DeclinedPublic

Description

Author: chantepie

Description:
Simple patch

Support read restriction (userCanRead). Group permission are checked, but not restrictions.


Version: 1.16.x
Severity: normal

attachment read-restri.patch ignored as obsolete

Details

Reference
bz12251

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 21 2014, 9:57 PM
bzimport set Reference to bz12251.
bzimport added a subscriber: Unknown Object (MLST).

chantepie wrote:

Patch for mw 1.12.0

attachment read-restr_mw1_12_0.patch ignored as obsolete

chantepie wrote:

Patch for mw 1.13

attachment readperm.patch ignored as obsolete

Read restrictions not support. Use the 'userCan' hook at your own risk though.

Changed resolution to LATER. I don't see any indication that this is ruled out absolutely in the future (and in fact, steps have been taken toward greater flexibility regarding per-user action restrictions).

chantepie wrote:

Patch for mw 1.13.3

attachment readperm.patch ignored as obsolete

chantepie wrote:

Patch for mw 1.14.0

attachment readperm-mw1.14.0.patch ignored as obsolete

chantepie wrote:

Patch for mw 1.15.1

Attached:

Please submit patches against trunk. Patches against release versions such as 1.15.1 are useless because the many differences between 1.15.1 and trunk will cause the patch to not apply cleanly.

chantepie wrote:

Workaround using "userCan" hook (mw 1.16.0)

Attached:

[Removing RESOLVED LATER as discussed in
http://lists.wikimedia.org/pipermail/wikitech-l/2012-November/064240.html .
Reopening and setting priority to "Lowest".
For future reference, please use either RESOLVED WONTFIX (for issues that will
not be fixed), or simply set lowest priority. Thanks a lot!]

I'm not sure what this was about seven years ago, but we definitely have some 'read' restriction support these days, see https://www.mediawiki.org/wiki/Manual:Preventing_access#Restrict_viewing_of_all_pages .