From caeb660f29d13db62d5381c262aa03e12f201ea2 Mon Sep 17 00:00:00 2001 From: Alexis Degrugillier Date: Sun, 14 Jun 2020 19:50:09 +0200 Subject: Add a way to disable/enable users (#3056) If you want to block users without deleting their account, you can now disable them from the interface. --- p/api/pshb.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'p/api/pshb.php') diff --git a/p/api/pshb.php b/p/api/pshb.php index e8109cbb0..1e07c0f80 100644 --- a/p/api/pshb.php +++ b/p/api/pshb.php @@ -140,6 +140,11 @@ foreach ($users as $userFilename) { Minz_Translate::reset(FreshRSS_Context::$user_conf->language); } + if (!FreshRSS_Context::$user_conf->enabled) { + Minz_Log::warning('FreshRSS skip disabled user ' . $username); + continue; + } + list($updated_feeds, $feed, $nb_new_articles) = FreshRSS_feed_Controller::actualizeFeed(0, $self, false, $simplePie); if ($updated_feeds > 0 || $feed != false) { $nb++; -- cgit v1.2.3