diff options
| author | 2020-06-14 19:50:09 +0200 | |
|---|---|---|
| committer | 2020-06-14 19:50:09 +0200 | |
| commit | caeb660f29d13db62d5381c262aa03e12f201ea2 (patch) | |
| tree | bbe593de7c584f15c67c1e4c96f0852c2c5637ed /app/actualize_script.php | |
| parent | 6edbeaaf6add5e6f60d949301a05ef42fbdc6afd (diff) | |
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.
Diffstat (limited to 'app/actualize_script.php')
| -rwxr-xr-x | app/actualize_script.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/actualize_script.php b/app/actualize_script.php index 5a5403d62..ffa6baedb 100755 --- a/app/actualize_script.php +++ b/app/actualize_script.php @@ -53,6 +53,10 @@ if ($system_conf->default_user !== '') { $limits = $system_conf->limits; $min_last_activity = time() - $limits['max_inactivity']; foreach ($users as $user) { + if (!get_user_configuration($user)->enabled) { + notice('FreshRSS skip disabled user ' . $user); + continue; + } if (($user !== $system_conf->default_user) && (FreshRSS_UserDAO::mtime($user) < $min_last_activity)) { notice('FreshRSS skip inactive user ' . $user); |
