Document shortcoming of isMine check

Contributes to issue CURA-9220.
This commit is contained in:
Ghostkeeper 2022-08-01 10:37:33 +02:00
parent da289b51d0
commit 84cf72d58f
No known key found for this signature in database
GPG key ID: FFBC62A75981ED70

View file

@ -92,6 +92,11 @@ class PrintJobOutputModel(QObject):
def isMine(self) -> bool:
"""
Returns whether this print job was sent by the currently logged in user.
This checks the owner of the print job with the owner of the currently
logged in account. Both of these are human-readable account names which
may be duplicate. In practice the harm here is limited, but it's the
best we can do with the information available to the API.
"""
return self._owner == CuraApplication.getInstance().getCuraAPI().account.userName