From: Kaldari Date: Mon, 23 Jul 2012 08:02:04 +0000 (-0700) Subject: More accurate function description for isAllowed() X-Git-Tag: 1.31.0-rc.0~22981^2 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27user%27%2C%20userid=session.user.id%29%20%7D%7D?a=commitdiff_plain;h=7bf1303c103e69f96109552c034b894db800c4cf;p=lhc%2Fweb%2Fwiklou.git More accurate function description for isAllowed() Change-Id: Idf95efc20714bfb2595259bcce6ba9eaf9a63fae --- 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' ) ) {