2f69213e3f
Fixed Group avatars to only display when user has read permissions to at least one project in the group.
14 lines
503 B
Ruby
14 lines
503 B
Ruby
class Public::ProjectsController < ApplicationController
|
|
skip_before_filter :authenticate_user!,
|
|
:reject_blocked, :set_current_user_for_observers,
|
|
:add_abilities
|
|
|
|
layout 'public'
|
|
|
|
def index
|
|
@projects = Project.publicish(current_user)
|
|
@projects = @projects.search(params[:search]) if params[:search].present?
|
|
@projects = @projects.sort(@sort = params[:sort])
|
|
@projects = @projects.includes(:namespace).page(params[:page]).per(20)
|
|
end
|
|
end
|