From e263f39697163b3d2b5303a2f6db4211fe80734a Mon Sep 17 00:00:00 2001 From: Brion Date: Thu, 16 Jan 2025 14:57:11 +0530 Subject: [PATCH 1/2] Add `actions` feature RBAC config `J2` mappings --- .../resources/deployment.config.json.j2 | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/apps/console/java/org.wso2.identity.apps.console.server.feature/resources/deployment.config.json.j2 b/apps/console/java/org.wso2.identity.apps.console.server.feature/resources/deployment.config.json.j2 index 56be8d44643..2eea0f0d43c 100644 --- a/apps/console/java/org.wso2.identity.apps.console.server.feature/resources/deployment.config.json.j2 +++ b/apps/console/java/org.wso2.identity.apps.console.server.feature/resources/deployment.config.json.j2 @@ -241,6 +241,36 @@ }, {% endfor %} {% endif %} + {% if console.actions is defined %} + "actions": { + "disabledFeatures": [ + {% if console.actions.disabled_features is defined %} + {% for feature in console.actions.disabled_features %} + "{{ feature }}"{{ "," if not loop.last }} + {% endfor %} + {% endif %} + ], + "enabled": {% if console.actions.enabled is defined %} {{ console.actions.enabled }}, + {% else %} true, + {% endif %} + "scopes": { + {% if console.actions.scopes is defined %} + {% for operation, scopes in console.actions.scopes.items() %} + "{{ operation }}": [ + {% for scope in scopes %} + "{{ scope }}"{{ "," if not loop.last }} + {% endfor %} + ]{{ "," if not loop.last }} + {% endfor %} + {% else %} + "create": [], + "read": [], + "update": [], + "delete": [] + {% endif %} + } + }, + {% endif %} {% if console.login_and_registration is defined %} "loginAndRegistration": { "disabledFeatures": [ From fd20ec09eefc6f638a9f17b26f9778c9ade8a98e Mon Sep 17 00:00:00 2001 From: Brion Date: Thu, 16 Jan 2025 15:01:08 +0530 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=A6=8B=20Add=20changeset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/brave-kids-fail.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/brave-kids-fail.md diff --git a/.changeset/brave-kids-fail.md b/.changeset/brave-kids-fail.md new file mode 100644 index 00000000000..ed57f130f2f --- /dev/null +++ b/.changeset/brave-kids-fail.md @@ -0,0 +1,5 @@ +--- +"@wso2is/console": patch +--- + +Add missing `actions` feature RBAC config `J2` mappings