Skip to content

Commit c9b48fe

Browse files
committed
fix: ensure that restrict_user_repos_access doesn't have to be set for proper functionality
1 parent d2860f4 commit c9b48fe

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

front/lib/front_web/templates/account/show.html.eex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<%= case {@user.github_scope, @user.github_login} do %>
2828
<% {:NONE, nil} -> %>
2929
<span class="red">Not Connected</span>
30-
<%= if FeatureProvider.feature_enabled?(:user_repos_access) do %>
30+
<%= unless FeatureProvider.feature_enabled?(:restrict_user_repos_access) do %>
3131
<div>
3232
<%= link "Grant public access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :public]), method: :post %>
3333
<%= link "Grant private access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :private]), method: :post %>
@@ -41,7 +41,7 @@
4141
<span class="red">Not Connected</span>
4242
·
4343
<span><a href="https://github.com/<%= @user.github_login %>" target="_blank">@<%= @user.github_login %></a></span>
44-
<%= if FeatureProvider.feature_enabled?(:user_repos_access) do %>
44+
<%= unless FeatureProvider.feature_enabled?(:restrict_user_repos_access) do %>
4545
<div>
4646
<%= link "Grant public access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :public]), method: :post %>
4747
<%= link "Grant private access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :private]), method: :post %>
@@ -53,7 +53,7 @@
5353
<span class="gray">email only</span>
5454
·
5555
<span><a href="https://github.com/<%= @user.github_login %>" target="_blank">@<%= @user.github_login %></a></span>
56-
<%= if FeatureProvider.feature_enabled?(:user_repos_access) do %>
56+
<%= unless FeatureProvider.feature_enabled?(:restrict_user_repos_access) do %>
5757
<div>
5858
<%= link "Grant public access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :public]), method: :post %>
5959
<%= link "Grant private access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :private]), method: :post %>
@@ -65,7 +65,7 @@
6565
<span class="gray">public repositories</span>
6666
·
6767
<span><a href="https://github.com/<%= @user.github_login %>" target="_blank">@<%= @user.github_login %></a></span>
68-
<%= if FeatureProvider.feature_enabled?(:user_repos_access) do %>
68+
<%= unless FeatureProvider.feature_enabled?(:restrict_user_repos_access) do %>
6969
<div>
7070
<%= link "Grant private access…", to: account_path(@conn, :update_repo_scope, "github", [access_level: :private]), method: :post %>
7171
</div>

helm-chart/templates/configmaps/features.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ data:
3636
enabled: false
3737
bitbucket_user_provider:
3838
enabled: false
39-
user_repos_access:
40-
enabled: true
4139
deployment_targets:
4240
enabled: false
4341
expose_cloud_agent_types:
@@ -154,8 +152,6 @@ data:
154152
enabled: false
155153
bitbucket_user_provider:
156154
enabled: false
157-
user_repos_access:
158-
enabled: true
159155
deployment_targets:
160156
enabled: true
161157
expose_cloud_agent_types:

0 commit comments

Comments
 (0)