mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 16:27:51 -06:00
Document shortcoming of isMine check
Contributes to issue CURA-9220.
This commit is contained in:
parent
da289b51d0
commit
84cf72d58f
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue