Add rails-settings-cached, use for initial feature flags
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Râu Cao
2023-02-17 17:07:42 +08:00
parent 7280a4c023
commit cd7b05e2ff
7 changed files with 38 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ class Admin::LightningController < Admin::BaseController
end
def check_feature_enabled
if ENV["LNDHUB_ADMIN_UI"].empty?
if !Setting.lndhub_admin_enabled?
flash[:alert] = "Lightning Admin UI not enabled"
redirect_to admin_root_path and return
end