mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 19:53:05 +08:00
10 lines
230 B
Ruby
10 lines
230 B
Ruby
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 |