diff options
| author | 2021-05-07 17:21:16 +0200 | |
|---|---|---|
| committer | 2021-05-07 17:21:16 +0200 | |
| commit | a65097f1b334ddd4da69343745324a93b6a754c6 (patch) | |
| tree | 332d9bda9807ebf728d9e5bc67ee1992eebda242 /app/Controllers/feedController.php | |
| parent | 5160bc62d8e6012e8296a8ca3c00acc33c6c05a2 (diff) | |
Make SSL options available to non-admins (#3612)
#fix https://github.com/FreshRSS/FreshRSS/issues/3611
Diffstat (limited to 'app/Controllers/feedController.php')
| -rwxr-xr-x | app/Controllers/feedController.php | 8 |
1 files changed, 3 insertions, 5 deletions
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); |
