Index: branches/werdna/restrictions-separation/includes/Title.php |
— | — | @@ -1118,7 +1118,7 @@ |
1119 | 1119 | } |
1120 | 1120 | |
1121 | 1121 | if ( ( $this->isCascadeProtectedPage() ) || |
1122 | | - ( $this->isCascadeProtectedImage() ) ) { |
| 1122 | + ($this->getNamespace == NS_MEDIA && $this->isCascadeProtectedImage() ) ) { |
1123 | 1123 | # We /could/ use the protection level on the source page, but it's fairly ugly |
1124 | 1124 | # as we have to establish a precedence hierarchy for pages included by multiple |
1125 | 1125 | # cascade-protected pages. So just restrict it to people with 'protect' permission, |