Fixed issue #1604 - Webform isn´t available | 401 Unauthorized.
This commit is contained in:
parent
84ed5ee451
commit
de55dbeb33
2 changed files with 3 additions and 3 deletions
|
@ -238,7 +238,7 @@ class FormController < ApplicationController
|
|||
|
||||
def enabled?
|
||||
return true if params[:test] && current_user && current_user.permissions?('admin.channel_formular')
|
||||
return true if Setting.get('form_ticket_create') && Setting.get('customer_ticket_create')
|
||||
return true if Setting.get('form_ticket_create')
|
||||
response_access_deny
|
||||
false
|
||||
end
|
||||
|
|
|
@ -245,8 +245,8 @@ class FormControllerTest < ActionDispatch::IntegrationTest
|
|||
end
|
||||
|
||||
test '06 - customer_ticket_create false disables form' do
|
||||
Setting.set('form_ticket_create', true)
|
||||
Setting.set('customer_ticket_create', false)
|
||||
Setting.set('form_ticket_create', false)
|
||||
Setting.set('customer_ticket_create', true)
|
||||
|
||||
fingerprint = SecureRandom.hex(40)
|
||||
|
||||
|
|
Loading…
Reference in a new issue