Add default site customization pages
From now on these static pages: `/privacy' `/conditions' `/accesibility' `/help/faq' `/welcome' have been moved to the DB and can be modified easily by any administrator in `/admin/site_customization/pages'
This commit is contained in:
@@ -12,6 +12,13 @@ class WelcomeController < ApplicationController
|
||||
end
|
||||
|
||||
def welcome
|
||||
if current_user.level_three_verified?
|
||||
redirect_to page_path("welcome_level_three_verified")
|
||||
elsif current_user.level_two_or_three_verified?
|
||||
redirect_to page_path("welcome_level_two_verified")
|
||||
else
|
||||
redirect_to page_path("welcome_not_verified")
|
||||
end
|
||||
end
|
||||
|
||||
def verification
|
||||
|
||||
Reference in New Issue
Block a user