Skip to content
Snippets Groups Projects
Unverified Commit 6e1b5908 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

check program publication

parent 89728ee1
No related branches found
No related tags found
No related merge requests found
......@@ -134,7 +134,7 @@ class Education::Program < ApplicationRecord
end
def git_path(website)
return unless for_website?(website)
return unless published? && for_website?(website)
clean_path = Static.clean_path "#{git_path_content_prefix(website)}programs/#{path}/"
"#{clean_path}_index.html"
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment