aboutsummaryrefslogtreecommitdiff
path: root/app/Controllers/subscriptionController.php
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2021-05-07 17:21:16 +0200
committerGravatar GitHub <noreply@github.com> 2021-05-07 17:21:16 +0200
commita65097f1b334ddd4da69343745324a93b6a754c6 (patch)
tree332d9bda9807ebf728d9e5bc67ee1992eebda242 /app/Controllers/subscriptionController.php
parent5160bc62d8e6012e8296a8ca3c00acc33c6c05a2 (diff)
Make SSL options available to non-admins (#3612)
#fix https://github.com/FreshRSS/FreshRSS/issues/3611
Diffstat (limited to 'app/Controllers/subscriptionController.php')
-rw-r--r--app/Controllers/subscriptionController.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/app/Controllers/subscriptionController.php b/app/Controllers/subscriptionController.php
index 879c7f905..f47988926 100644
--- a/app/Controllers/subscriptionController.php
+++ b/app/Controllers/subscriptionController.php
@@ -131,14 +131,9 @@ class FreshRSS_subscription_Controller extends Minz_ActionController {
$feed->_attributes('content_action', Minz_Request::param('content_action', 'replace'));
- if (FreshRSS_Auth::hasAccess('admin')) {
- $feed->_attributes('ssl_verify', Minz_Request::paramTernary('ssl_verify'));
- $timeout = intval(Minz_Request::param('timeout', 0));
- $feed->_attributes('timeout', $timeout > 0 ? $timeout : null);
- } else {
- $feed->_attributes('ssl_verify', null);
- $feed->_attributes('timeout', null);
- }
+ $feed->_attributes('ssl_verify', Minz_Request::paramTernary('ssl_verify'));
+ $timeout = intval(Minz_Request::param('timeout', 0));
+ $feed->_attributes('timeout', $timeout > 0 ? $timeout : null);
if (Minz_Request::paramBoolean('use_default_purge_options')) {
$feed->_attributes('archiving', null);