new method was added in the same rel, so wait before showing the notice. follow up...
[lhc/web/wiklou.git] / img_auth.php
index 8b12181..968a60e 100644 (file)
@@ -116,8 +116,8 @@ function wfImageAuthMain() {
        }
        
        // Check user authorization for this title
-       // UserCanRead Checks Whitelist too
-       if ( !$title->userCanRead() ) {
+       // Checks Whitelist too
+       if ( !$title->userCan( 'read' ) ) {
                wfForbidden( 'img-auth-accessdenied', 'img-auth-noread', $name );
                return;
        }