mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
[ADD]组织项目相关
This commit is contained in:
10
app/controllers/projects/teams_controller.rb
Normal file
10
app/controllers/projects/teams_controller.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class Projects::TeamsController < Projects::BaseController
|
||||
def index
|
||||
if @project.owner.is_a?(Organization)
|
||||
@teams = @project.owner.teams
|
||||
else
|
||||
@teams = Team.none
|
||||
end
|
||||
@teams = paginate(@teams)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user