Index: trunk/extensions/OpenStackManager/OpenStackNovaUser.php |
— | — | @@ -144,7 +144,8 @@ |
145 | 145 | global $wgAuth; |
146 | 146 | global $wgOpenStackManagerLDAPGlobalRoles; |
147 | 147 | |
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 ); |
149 | 150 | return false; |
150 | 151 | } |
151 | 152 | |