Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
redbluegreenhat committed Mar 27, 2024
1 parent b2fd86c commit 23415c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/RequestWiki/RequestWikiRequestViewer.php
Expand Up @@ -44,7 +44,7 @@ public function getFormDescriptor(
// but if we can't view the request, it also doesn't exist
$permissionManager = MediaWikiServices::getInstance()->getPermissionManager();

if ( !$visibilityConds[$request->visibility] !== 'read' && $permissionManager->userHasRight( $userR, 'read' ) ) {
if ( $visibilityConds[$request->visibility] !== 'read' && $permissionManager->userHasRight( $userR, 'read' ) ) {
if ( !$permissionManager->userHasAllRights( $userR, 'createwiki', $visibilityConds[$request->visibility] ) ) {
$context->getOutput()->addHTML( Html::errorBox( wfMessage( 'requestwiki-unknown' )->escaped() ) );

Expand Down

0 comments on commit 23415c1

Please sign in to comment.