Only show overview edit options as admin.
This commit is contained in:
parent
58b2acb184
commit
6b9e5f75f2
1 changed files with 3 additions and 2 deletions
|
@ -250,6 +250,8 @@ class Table extends App.Controller
|
|||
|
||||
# render init page
|
||||
checkbox = true
|
||||
edit = false
|
||||
if @isRole('Admin')
|
||||
edit = true
|
||||
if @isRole('Customer')
|
||||
checkbox = 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)
|
||||
|
|
Loading…
Reference in a new issue