infra updates

This commit is contained in:
2020-03-05 11:36:49 -05:00
parent aec5364f2e
commit 840bac4d54
12 changed files with 47 additions and 49 deletions
+6 -13
View File
@@ -249,11 +249,12 @@ module Qwaiter
before :users do
group label: :mozo do # Allow other tools to inject into the mozo menu
title 'Mozo'
resource_link UserFeedback, scope: 'Admin'
resource_link Supplier, scope: 'Admin'
resource_link Section, scope: 'Admin'
resource_link Table, scope: 'Admin'
resource_link SvgElement, scope: 'Admin'
resource_link UserFeedback, scope: :admin
resource_link User, scope: :admin
resource_link Supplier, scope: :admin
resource_link Section, scope: :admin
resource_link Table, scope: :admin
resource_link SvgElement, scope: :admin
engine_link Rails.application, title: 'Go to the website', path: '/'
end
end
@@ -296,14 +297,6 @@ module Qwaiter
end
end
config.middleware.insert_before 0, Rack::Cors do
allow do
origins 'localhost', 'supplier.mozo.local', 'user.mozo.local'
#resource '/user/*', :headers => '*', :methods => '*' #[:get, :post, :options]
resource '*', headers: :any, methods: [:get, :post, :put, :patch, :delete, :options]
end
end
# Version of your assets, change this if you want to expire all your assets
config.assets.version = '1.0'
end