Browse Source

add: project team can add authorize

tags/v3.1.5
yystopf 4 years ago
parent
commit
68712f9b4c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      app/views/projects/teams/index.json.jbuilder

+ 2
- 1
app/views/projects/teams/index.json.jbuilder View File

@@ -1,5 +1,6 @@
json.total_count @teams.total_count
json.can_add @owner.is_owner?(current_user.id) || @owner&.repo_admin_change_team_access
json.teams @teams.each do |team|
json.(team, :id, :name, :authorize)
json.can_remove !team.includes_all_project && team&.organization&.repo_admin_change_team_access
json.can_remove !team.includes_all_project && (@owner.is_owner?(current_user.id) || team&.organization&.repo_admin_change_team_access)
end

Loading…
Cancel
Save