Skip to content

Commit 43dfb38

Browse files
committed
fix(rbac): add missing service accounts permissions
1 parent 9b6ce41 commit 43dfb38

File tree

4 files changed

+15
-1
lines changed

4 files changed

+15
-1
lines changed

front/lib/front_web/templates/people/organization.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@
4444
<% end %>
4545

4646
<%= if FeatureProvider.feature_enabled?(:service_accounts, param: @org_id) and @permissions["organization.service_accounts.view"] do %>
47-
<div id="service-accounts" data-config="<%= Poison.encode!(service_accounts_config(@conn)) %>"></div>
47+
<div id="service-accounts" data-config="<%= Poison.encode!(service_accounts_config(@conn)) %>"></div>
4848
<% end %>
4949
</div>

rbac/ce/lib/rbac/permissions.ex

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,16 @@ defmodule Rbac.Permissions do
158158
name: "organization.instance_git_integration.manage",
159159
description: "Manage the instance Git integration settings."
160160
},
161+
%{
162+
id: "c530356b-c90e-473f-97b5-ea4538f95365",
163+
name: "organization.service_accounts.view",
164+
description: "View service accounts within the organization."
165+
},
166+
%{
167+
id: "c530356b-c90e-473f-97b5-ea4538f95366",
168+
name: "organization.service_accounts.manage",
169+
description: "Manage service accounts within the organization."
170+
},
161171
%{
162172
id: "bcaf879d-987f-42d7-9c89-f10911db6041",
163173
name: "project.view",

rbac/ce/lib/rbac/roles/admin.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ defmodule Rbac.Roles.Admin do
2727
"organization.secrets.view",
2828
"organization.self_hosted_agents.manage",
2929
"organization.self_hosted_agents.view",
30+
"organization.service_accounts.view",
31+
"organization.service_accounts.manage",
3032
"organization.view",
3133
"project.access.manage",
3234
"project.access.view",

rbac/ce/lib/rbac/roles/owner.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ defmodule Rbac.Roles.Owner do
2727
"organization.secrets.view",
2828
"organization.self_hosted_agents.manage",
2929
"organization.self_hosted_agents.view",
30+
"organization.service_accounts.view",
31+
"organization.service_accounts.manage",
3032
"organization.view",
3133
"project.access.manage",
3234
"project.access.view",

0 commit comments

Comments
 (0)