More accurate function description for isAllowed()
authorKaldari <rkaldari@wikimedia.org>
Mon, 23 Jul 2012 08:02:04 +0000 (01:02 -0700)
committerKaldari <rkaldari@wikimedia.org>
Mon, 23 Jul 2012 18:17:25 +0000 (11:17 -0700)
Change-Id: Idf95efc20714bfb2595259bcce6ba9eaf9a63fae

includes/upload/UploadFromUrl.php

index c7e482e..a9e4519 100644 (file)
@@ -36,11 +36,12 @@ class UploadFromUrl extends UploadBase {
 
        /**
         * Checks if the user is allowed to use the upload-by-URL feature. If the
-        * user is allowed, pass on permissions checking to the parent.
+        * user is not allowed, return the name of the user right as a string. If
+        * the user is allowed, have the parent do further permissions checking.
         *
         * @param $user User
         *
-        * @return bool
+        * @return true|string
         */
        public static function isAllowed( $user ) {
                if ( !$user->isAllowed( 'upload_by_url' ) ) {