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,7 +250,9 @@ class Table extends App.Controller
|
||||||
|
|
||||||
# render init page
|
# render init page
|
||||||
checkbox = true
|
checkbox = true
|
||||||
edit = true
|
edit = false
|
||||||
|
if @isRole('Admin')
|
||||||
|
edit = true
|
||||||
if @isRole('Customer')
|
if @isRole('Customer')
|
||||||
checkbox = false
|
checkbox = false
|
||||||
edit = false
|
edit = false
|
||||||
|
@ -271,7 +273,6 @@ class Table extends App.Controller
|
||||||
html = App.view('agent_ticket_view/content')(
|
html = App.view('agent_ticket_view/content')(
|
||||||
overview: @overview
|
overview: @overview
|
||||||
view_modes: view_modes
|
view_modes: view_modes
|
||||||
checkbox: checkbox
|
|
||||||
edit: edit
|
edit: edit
|
||||||
)
|
)
|
||||||
html = $(html)
|
html = $(html)
|
||||||
|
|
Loading…
Reference in a new issue