Add some logging for weird redirected POSTs
[lhc/web/wiklou.git] / includes / api / ApiQueryInfo.php
index 5f8c497..017684e 100644 (file)
@@ -669,7 +669,9 @@ class ApiQueryInfo extends ApiQueryBase {
        private function getWatchedInfo() {
                $user = $this->getUser();
 
-               if ( $user->isAnon() || count( $this->everything ) == 0 ) {
+               if ( $user->isAnon() || count( $this->everything ) == 0
+                       || !$user->isAllowed( 'viewmywatchlist' )
+               ) {
                        return;
                }