mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 19:53:05 +08:00
12 lines
360 B
Ruby
12 lines
360 B
Ruby
class OwnersController < ApplicationController
|
|
before_action :require_login
|
|
|
|
def index
|
|
@owners = []
|
|
@owners += [current_user]
|
|
@owners += Organization.joins(team_users: :team)
|
|
.where(team_users: {user_id: current_user.id},
|
|
teams: {can_create_org_project: true})
|
|
.distinct
|
|
end
|
|
end |