From a65097f1b334ddd4da69343745324a93b6a754c6 Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Fri, 7 May 2021 17:21:16 +0200 Subject: Make SSL options available to non-admins (#3612) #fix https://github.com/FreshRSS/FreshRSS/issues/3611 --- app/Controllers/feedController.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'app/Controllers/feedController.php') diff --git a/app/Controllers/feedController.php b/app/Controllers/feedController.php index a9dc241a9..dd845bccd 100755 --- a/app/Controllers/feedController.php +++ b/app/Controllers/feedController.php @@ -181,11 +181,9 @@ class FreshRSS_feed_Controller extends Minz_ActionController { 'timeout' => null, 'curl_params' => empty($opts) ? null : $opts, ); - if (FreshRSS_Auth::hasAccess('admin')) { - $attributes['ssl_verify'] = Minz_Request::paramTernary('ssl_verify'); - $timeout = intval(Minz_Request::param('timeout', 0)); - $attributes['timeout'] = $timeout > 0 ? $timeout : null; - } + $attributes['ssl_verify'] = Minz_Request::paramTernary('ssl_verify'); + $timeout = intval(Minz_Request::param('timeout', 0)); + $attributes['timeout'] = $timeout > 0 ? $timeout : null; try { $feed = self::addFeed($url, '', $cat, null, $http_auth, $attributes); -- cgit v1.2.3