mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 20:45:54 +08: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
@ -166,14 +166,7 @@ class DigitalFactoryController(QObject):
|
||||
|
||||
: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:
|
||||
# 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)
|
||||
return self._user_has_access
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user