You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- 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
|