mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 20:56:08 +10:00
Use compact syntax
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user