mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-12-26 01:18:34 -07:00
Directly update permissions after login.
Otherwise you have to wait until the access token refreshes, and are in a weird state in between that time where you _are_ logged in, and we even have the subscription-level, but the permission-list are empty. Now you just have to wait until the permissions return from the server after login, which shouldn't be a problem unless our users are speedrunners. fixes internal ticket CURA-12076
This commit is contained in:
parent
f8aa923ce0
commit
5169db2353
1 changed files with 1 additions and 0 deletions
|
|
@ -232,6 +232,7 @@ class Account(QObject):
|
|||
|
||||
def _onProfileChanged(self, profile: Optional[UserProfile]) -> None:
|
||||
self._user_profile = profile
|
||||
self._updatePermissions()
|
||||
self.userProfileChanged.emit()
|
||||
|
||||
def _sync(self) -> None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue