Fixed issue #636 - Customer get forced to save time for time accounting in customer interface - only allow it for agents.

This commit is contained in:
Martin Edenhofer 2017-01-17 15:56:28 +01:00
parent d0b26eb55a
commit 303db3e7c3

View file

@ -763,6 +763,10 @@ class App.TicketZoom extends App.Controller
return
# time tracking
if @permissionCheck('ticket.customer')
@submitPost(e, ticket)
return
new App.TicketZoomTimeAccounting(
container: @el.closest('.content')
ticket: ticket