From 7bf1303c103e69f96109552c034b894db800c4cf Mon Sep 17 00:00:00 2001 From: Kaldari Date: Mon, 23 Jul 2012 01:02:04 -0700 Subject: [PATCH] More accurate function description for isAllowed() Change-Id: Idf95efc20714bfb2595259bcce6ba9eaf9a63fae --- includes/upload/UploadFromUrl.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/upload/UploadFromUrl.php b/includes/upload/UploadFromUrl.php index c7e482e156..a9e451988e 100644 --- a/includes/upload/UploadFromUrl.php +++ b/includes/upload/UploadFromUrl.php @@ -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' ) ) { -- 2.20.1