Permalink
Browse files

remove routes if interface is disabled

Conflicts:
	config/routes.rb
  • Loading branch information...
1 parent 68f1a3a commit f6edfc63fa8e145de6837e7f73060aa35d4e56eb @jokklan jokklan committed with simi Mar 31, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 config/routes.rb
View
6 config/routes.rb
@@ -1,5 +1,7 @@
Refinery::Core::Engine.routes.draw do
- namespace :admin, :path => Refinery::Core.backend_route do
- resources :settings, :except => :show
+ if Refinery::Settings.enable_interface
+ namespace :admin, :path => Refinery::Core.backend_route do
+ resources :settings, :except => :show
+ end
end
end

0 comments on commit f6edfc6

Please sign in to comment.