Fixed issue #1604 - Webform isn´t available | 401 Unauthorized.

This commit is contained in:
Martin Edenhofer 2017-12-04 15:20:56 +01:00
parent 84ed5ee451
commit de55dbeb33
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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)