mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Check permissions before showing abort/pause/delete context buttons
The user needs permissions to do these things, so don't show them if the user can't use them. Contributes to issue CURA-9220.
This commit is contained in:
parent
8871fd6224
commit
5eb340e3f0
2 changed files with 78 additions and 19 deletions
|
@ -204,14 +204,14 @@ class UltimakerNetworkedPrinterOutputDevice(NetworkedPrinterOutputDevice):
|
|||
Whether this user can change things about print jobs made by other
|
||||
people.
|
||||
"""
|
||||
return False
|
||||
return True
|
||||
|
||||
@pyqtProperty(bool, constant = True)
|
||||
def canWriteOwnPrintJobs(self) -> bool:
|
||||
"""
|
||||
Whether this user can change things about print jobs made by themself.
|
||||
"""
|
||||
return False
|
||||
return True
|
||||
|
||||
@pyqtSlot(name="openPrintJobControlPanel")
|
||||
def openPrintJobControlPanel(self) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue