Browse Source

Document shortcoming of isMine check

Contributes to issue CURA-9220.
Ghostkeeper 2 years ago
parent
commit
84cf72d58f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      cura/PrinterOutput/Models/PrintJobOutputModel.py

+ 5 - 0
cura/PrinterOutput/Models/PrintJobOutputModel.py

@@ -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