in extensions/GraphViz/includes/GraphViz.php, getUser function,
if ( array_intersect($rights, $requiredRights) == $requiredRights ) {
return $wgUser;
}the result is not expected, because of the order problem!
if ( array_intersect($requiredRights, $rights ) == $requiredRights ) {
return $wgUser;
}temporally fix the problem
array_intersect() returns an array containing all the values of array1 that are present in all the arguments. Note that keys are preserved.
| 产品 | 版本 |
| MediaWiki | 1.30.0 |
| PHP | 5.6.36 (fpm-fcgi) |
| MySQL | 5.7.22 |
| ICU | 50.1.2 |