r80048 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80047‎ | r80048 | r80049 >
Date:23:05, 11 January 2011
Author:laner
Status:deferred
Tags:
Comment:
Fixing check for global roles
Modified paths:
  • /trunk/extensions/OpenStackManager/OpenStackNovaUser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenStackManager/OpenStackNovaUser.php
@@ -144,7 +144,8 @@
145145 global $wgAuth;
146146 global $wgOpenStackManagerLDAPGlobalRoles;
147147
148 - if ( ! array_key_exists( $wgOpenStackManagerLDAPGlobalRoles, $role ) ) {
 148+ if ( ! array_key_exists( $role, $wgOpenStackManagerLDAPGlobalRoles ) ) {
 149+ $wgAuth->printDebug( "Requested global role does not exist: $role", NONSENSITIVE );
149150 return false;
150151 }
151152

Status & tagging log