mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Check if the user can change the queue before showing option
If the user can't change the queue of other prints, then it can't move prints to the top. Contributes to issue CURA-9220.
This commit is contained in:
parent
bef10b8b35
commit
99d93fa58a
2 changed files with 4 additions and 4 deletions
|
@ -196,7 +196,7 @@ class UltimakerNetworkedPrinterOutputDevice(NetworkedPrinterOutputDevice):
|
|||
"""
|
||||
Whether this user can read the list of print jobs and their properties.
|
||||
"""
|
||||
return True # On LAN, the user can always read it.
|
||||
return True
|
||||
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def canWriteOthersPrintJobs(self) -> bool:
|
||||
|
@ -204,14 +204,14 @@ class UltimakerNetworkedPrinterOutputDevice(NetworkedPrinterOutputDevice):
|
|||
Whether this user can change things about print jobs made by other
|
||||
people.
|
||||
"""
|
||||
return True # On LAN, the user can always change this.
|
||||
return False
|
||||
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def canWriteOwnPrintJobs(self) -> bool:
|
||||
"""
|
||||
Whether this user can change things about print jobs made by themself.
|
||||
"""
|
||||
return True # On LAN, the user can always change this.
|
||||
return False
|
||||
|
||||
@pyqtSlot(name="openPrintJobControlPanel")
|
||||
def openPrintJobControlPanel(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue