gitlabhq/app/controllers/teams/projects_controller.rb
2013-01-24 22:31:24 +02:00

22 lines
362 B
Ruby

class Teams::ProjectsController < Teams::ApplicationController
def index
@projects = @user_team.projects
@avaliable_projects = current_user.admin? ? Project.without_team(@user_team) : (Project.personal(current_user) + current_user.projects).uniq
end
def new
end
def create
end
def edit
end
def update
end
def destroy
end
end