mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Add descriptive comment for deleting the user auth data
CURA-8093
This commit is contained in:
parent
72080a3cca
commit
dca0612ee7
1 changed files with 2 additions and 0 deletions
|
@ -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]):
|
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"
|
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"]:
|
if "ultimaker_auth_data" in parser["general"]:
|
||||||
ultimaker_auth_data = json.loads(parser["general"]["ultimaker_auth_data"])
|
ultimaker_auth_data = json.loads(parser["general"]["ultimaker_auth_data"])
|
||||||
if set(Account.CLIENT_SCOPES.split(" ")) - set(ultimaker_auth_data["scope"].split(" ")):
|
if set(Account.CLIENT_SCOPES.split(" ")) - set(ultimaker_auth_data["scope"].split(" ")):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue