Only show overview edit options as admin.

This commit is contained in:
Martin Edenhofer 2016-02-28 01:14:09 +01:00
parent 58b2acb184
commit 6b9e5f75f2

View file

@ -250,7 +250,9 @@ class Table extends App.Controller
# render init page
checkbox = true
edit = true
edit = false
if @isRole('Admin')
edit = true
if @isRole('Customer')
checkbox = false
edit = false
@ -271,7 +273,6 @@ class Table extends App.Controller
html = App.view('agent_ticket_view/content')(
overview: @overview
view_modes: view_modes
checkbox: checkbox
edit: edit
)
html = $(html)