mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-15 15:46:08 +10:00
Update check If user can assign project to team
This commit is contained in:
committed by
Dmitriy Zaporozhets
parent
6d713e84e1
commit
e52fec9cd9
@@ -4,7 +4,7 @@ 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
|
||||
@avaliable_projects = current_user.admin? ? Project.without_team(user_team) : current_user.owned_projects.without_team(user_team)
|
||||
end
|
||||
|
||||
def new
|
||||
|
||||
Reference in New Issue
Block a user