mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-05-06 22:23:10 -04:00
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.
This commit is contained in:
committed by
GitHub
parent
6edbeaaf6a
commit
caeb660f29
@@ -163,7 +163,7 @@ class FeverAPI
|
||||
$username = trim($username);
|
||||
Minz_Session::_param('currentUser', $username);
|
||||
$user_conf = get_user_configuration($username);
|
||||
if ($user_conf != null && $feverKey === $user_conf->feverKey) {
|
||||
if ($user_conf != null && $feverKey === $user_conf->feverKey && $user_conf->enabled) {
|
||||
FreshRSS_Context::$user_conf = $user_conf;
|
||||
Minz_Translate::init(FreshRSS_Context::$user_conf->language);
|
||||
$this->entryDAO = FreshRSS_Factory::createEntryDao();
|
||||
|
||||
Reference in New Issue
Block a user