From dca0612ee766ae7e62a03c9158538d88399954ca Mon Sep 17 00:00:00 2001 From: Kostas Karmas Date: Thu, 8 Apr 2021 12:49:33 +0200 Subject: [PATCH] Add descriptive comment for deleting the user auth data CURA-8093 --- .../VersionUpgrade/VersionUpgrade48to49/VersionUpgrade48to49.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/VersionUpgrade/VersionUpgrade48to49/VersionUpgrade48to49.py b/plugins/VersionUpgrade/VersionUpgrade48to49/VersionUpgrade48to49.py index 854c05bb25..ee32bbc8bd 100644 --- a/plugins/VersionUpgrade/VersionUpgrade48to49/VersionUpgrade48to49.py +++ b/plugins/VersionUpgrade/VersionUpgrade48to49/VersionUpgrade48to49.py @@ -34,6 +34,8 @@ class VersionUpgrade48to49(VersionUpgrade): if "categories_expanded" in parser["cura"] and any([setting in parser["cura"]["categories_expanded"] for setting in self._moved_visibility_settings]): parser["cura"]["categories_expanded"] += ";top_bottom" + # If the account scope in 4.8 is outdated, delete it so that the user is enforced to log in again and get the + # correct permissions. if "ultimaker_auth_data" in parser["general"]: ultimaker_auth_data = json.loads(parser["general"]["ultimaker_auth_data"]) if set(Account.CLIENT_SCOPES.split(" ")) - set(ultimaker_auth_data["scope"].split(" ")):