This commit is contained in:
2023-01-29 20:25:26 +00:00
parent 148ef4efdd
commit 2c521dc0e3
3 changed files with 20 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ class HomeController < ApplicationController
if user_signed_in?
if current_user.admin?
@file = YAML.load_file(Rails.root.to_s + '/config/caf_text.yml')
@objectives = @file["objectives"]
else
end
end