Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4435
mw.patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:57 PM
2014-11-21 21:57:59 (UTC+0)
Size
833 B
Referenced Files
None
Subscribers
None
mw.patch
View Options
1520,1521c1520,1537
< if ( !empty( $wgGroupPermissions['*']['read'] ) )
< return true;
---
> if ($wgGroupPermissions['*']['read']) {
> $groups = $wgUser->getEffectiveGroups();
> $restrictions = $this->getRestrictions('read');
>
> if (count($restrictions) == 0) {
> return true;
> }
>
> foreach ($restrictions as $r) {
> foreach ($groups as $g) {
> if ($g == $r) {
> return true;
> }
> }
> }
>
> return false;
> }
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4000
Default Alt Text
mw.patch (833 B)
Attached To
Mode
T14251: Read restriction support
Attached
Detach File
Event Timeline
Log In to Comment