Ne pas rafraîchir les flux des utilisateurs non logués depuis x jours

https://github.com/marienfressinaud/FreshRSS/issues/681
Warning: needs some testing
This commit is contained in:
Alexandre Alapetite
2014-10-29 00:45:42 +01:00
parent 00127f07c5
commit 9f97f7df88
6 changed files with 33 additions and 12 deletions

View File

@@ -95,9 +95,8 @@ class FreshRSS_user_Controller extends Minz_ActionController {
Minz_View::prependTitle(_t('gen.title.user_management') . ' · ');
// Get the correct current user.
$userDAO = new FreshRSS_UserDAO();
$username = Minz_Request::param('u', Minz_Session::param('currentUser'));
if (!$userDAO->exist($username)) {
if (!FreshRSS_UserDAO::exist($username)) {
$username = Minz_Session::param('currentUser');
}
$this->view->current_user = $username;