Skip to content

Commit

Permalink
upgrade totalsim
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Sep 18, 2024
1 parent e9f0003 commit c56f2bc
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions apps.totalsim.us/apps/dashboard/initializers/ood.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# hide all menu options
NavConfig.categories = ['Files']
NavConfig.categories_whitelist=true
Rails.application.config.after_initialize do
require 'socket'
hostname = Socket.gethostname

# enable dev mode for all configured app developers
Configuration.app_development_enabled = UsrRouter.base_path.directory?
Configuration.app_sharing_facls_enabled = true
# TODO: remove when upgrading to 4.0
unless hostname =~ /dev/
# hide all menu options
NavConfig.categories = ['Files']
NavConfig.categories_whitelist=true
end

# enable dev mode for all configured app developers
Configuration.app_development_enabled = UsrRouter.base_path.directory?
Configuration.app_sharing_facls_enabled = true
end

0 comments on commit c56f2bc

Please sign in to comment.