Fixed issue #2285 - Permission issue: response templates only usable when admin is also agent.
This commit is contained in:
parent
b1caed65f5
commit
402b28b3e7
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ curl http://localhost/api/v1/text_modules.json -v -u #{login}:#{password}
|
||||||
=end
|
=end
|
||||||
|
|
||||||
def index
|
def index
|
||||||
permission_check('ticket.agent')
|
permission_check(['admin.text_module', 'ticket.agent'])
|
||||||
model_index_render(TextModule, params)
|
model_index_render(TextModule, params)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ curl http://localhost/api/v1/text_modules/#{id}.json -v -u #{login}:#{password}
|
||||||
=end
|
=end
|
||||||
|
|
||||||
def show
|
def show
|
||||||
permission_check('ticket.agent')
|
permission_check(['admin.text_module', 'ticket.agent'])
|
||||||
model_show_render(TextModule, params)
|
model_show_render(TextModule, params)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue