Index: trunk/phase3/includes/upload/UploadBase.php |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | * Can be overriden by subclasses. |
93 | 93 | */ |
94 | 94 | public static function isAllowed( $user ) { |
95 | | - foreach ( self::getRequiredPermissions as $permission ) { |
| 95 | + foreach ( self::getRequiredPermissions() as $permission ) { |
96 | 96 | if ( !$user->isAllowed( $permission ) ) { |
97 | 97 | return $permission; |
98 | 98 | } |