Fixup FIXME on r65818
authorSam Reed <reedy@users.mediawiki.org>
Thu, 6 Jan 2011 03:27:01 +0000 (03:27 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Thu, 6 Jan 2011 03:27:01 +0000 (03:27 +0000)
includes/upload/UploadBase.php

index 1e3414f..d02f752 100644 (file)
@@ -77,21 +77,13 @@ abstract class UploadBase {
                return true;
        }
 
-       /**
-        * Returns an array of permissions that is required to upload a file
-        * 
-        * @return array
-        */
-       public static function getRequiredPermissions() {
-               return array( 'upload', 'edit' );
-       }
        /**
         * Returns true if the user can use this upload module or else a string
         * identifying the missing permission.
         * Can be overriden by subclasses.
         */
        public static function isAllowed( $user ) {
-               foreach ( self::getRequiredPermissions() as $permission ) {
+               foreach ( array( 'upload', 'edit' ) as $permission ) {
                        if ( !$user->isAllowed( $permission ) ) {
                                return $permission;
                        }