Skip to content

Commit

Permalink
[fix] unable to directly access to or preview node
Browse files Browse the repository at this point in the history
  • Loading branch information
sunny4381 committed Feb 18, 2021
1 parent 922720b commit aef50af
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/controllers/inquiry/agents/nodes/form_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@ def set_answer
end

def set_group
@group = Cms::Group.where(id: params[:group]).first if params[:group]
raise "404" if params[:group] && @group.blank?
raise "404" if @cur_site.inquiry_form_id == @cur_node.id && @group.blank?
if params[:group]
@group = Cms::Group.where(id: params[:group]).first
raise "404" if @group.blank?
end
end

def set_page
Expand Down

0 comments on commit aef50af

Please sign in to comment.