infra updates
This commit is contained in:
+6
-13
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user