Skip to content

Commit 39eedbd

Browse files
committed
Removed unneeded strong_parameters in teams
1 parent 2e1c935 commit 39eedbd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/controllers/teams_controller.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,8 @@ def record_exit
212212
end
213213

214214
def visitors
215-
visitors_params = params.permit(:full)
216-
217215
since = is_admin? ? 0 : 2.weeks.ago.to_i
218-
full = is_admin? && visitors_params[:full] == 'true'
216+
full = is_admin? && params[:full] == 'true'
219217
@visitors = @team.aggregate_visitors(since).reject { |visitor| visitor[:user] && @team.on_team?(visitor[:user]) }
220218
@visitors = fake_visitors if @visitors.blank? && Rails.env.development?
221219
@visitors = @visitors.first(75) if !is_admin? || !full

0 commit comments

Comments
 (0)