summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/concerns/filter_projects.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/controllers/concerns/filter_projects.rb b/app/controllers/concerns/filter_projects.rb
index 091412a7c93..586f97c5eb4 100644
--- a/app/controllers/concerns/filter_projects.rb
+++ b/app/controllers/concerns/filter_projects.rb
@@ -10,10 +10,7 @@ module FilterProjects
def filter_projects(projects)
projects = projects.search(params[:filter_projects]) if params[:filter_projects].present?
projects = projects.non_archived if params[:archived].blank?
-
- if params[:personal].present? and current_user
- projects = projects.personal(current_user)
- end
+ projects = projects.personal(current_user) if params[:personal].present? && current_user
projects
end