From 373ca60f1121a117132d7d7ee0ba7ba4c7157901 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Tue, 24 Sep 2024 14:28:25 -0700 Subject: [PATCH] users: Increment app version for changes w.r.t. inactive users - Since previous release 24.20 already has a increment to version 6, users app version must be incremented in order for the changes related to inactive users to take effect. Tests: - On applying the patches and running the service, upgrade to new app version runs and succeeds. If there are inactive users presets, then before the setup() privileged method is run, setup_and_sync_user_states() is run. Signed-off-by: Sunil Mohan Adapa --- plinth/modules/users/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plinth/modules/users/__init__.py b/plinth/modules/users/__init__.py index f5a7f5f06..4c446a767 100644 --- a/plinth/modules/users/__init__.py +++ b/plinth/modules/users/__init__.py @@ -47,7 +47,7 @@ class UsersApp(app_module.App): app_id = 'users' - _version = 6 + _version = 7 can_be_disabled = False @@ -111,7 +111,7 @@ class UsersApp(app_module.App): if not old_version: privileged.first_setup() - if old_version and old_version < 6: + if old_version and old_version < 7: # Setup password policy and lock LDAP passwords for inactive users. inactivated_users = _get_inactivated_users() if inactivated_users: