mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-12 09:17:50 -06:00
Remove check for account subscriptions
Since the variable `self._user_has_access` already contains the information on whether the user can access the Digital Library. CURA-8112
This commit is contained in:
parent
11f66b2a78
commit
3dbbe7276b
1 changed files with 0 additions and 7 deletions
|
@ -166,14 +166,7 @@ class DigitalFactoryController(QObject):
|
||||||
|
|
||||||
:return: True if the user account has Digital Library access, else False
|
:return: True if the user account has Digital Library access, else False
|
||||||
"""
|
"""
|
||||||
if self._account.userProfile:
|
|
||||||
subscriptions = self._account.userProfile.get("subscriptions", [])
|
|
||||||
if len(subscriptions) > 0:
|
|
||||||
return True
|
|
||||||
if self._user_has_access:
|
if self._user_has_access:
|
||||||
# The user has access even though they have no subscriptions. This means they are an Essential user and they
|
|
||||||
# have limited personal private projects available. In this case, we need to check whether they have already
|
|
||||||
# reached their limit.
|
|
||||||
self._api.checkUserCanCreateNewLibraryProject(callback = self.setCanCreateNewLibraryProject)
|
self._api.checkUserCanCreateNewLibraryProject(callback = self.setCanCreateNewLibraryProject)
|
||||||
return self._user_has_access
|
return self._user_has_access
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue