|
|
|
@ -29,7 +29,7 @@ class WelcomeController < ApplicationController
|
|
|
|
|
unless params[:organization].nil?
|
|
|
|
|
@cur_projects = Project.find(params[:organization])
|
|
|
|
|
@organization = @cur_projects.enterprise_name
|
|
|
|
|
@organization_projects = current_user.admin? ? Project.where("enterprise_name =? ", @organization) : Project.all_public.where("enterprise_name =? ", @organization)
|
|
|
|
|
@organization_projects = (current_user.admin? || User.current.member_of?(@cur_projects)) ? Project.where("enterprise_name =? ", @organization) : Project.all_public.where("enterprise_name =? ", @organization)
|
|
|
|
|
@e_count = @organization_projects.count
|
|
|
|
|
@part_projects = []
|
|
|
|
|
# 取十个
|
|
|
|
|