Page MenuHomePhabricator
Authored By
bzimport
Nov 21 2014, 9:57 PM
Size
833 B
Referenced Files
None
Subscribers
None

mw.patch

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

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4000
Default Alt Text
mw.patch (833 B)

Event Timeline