From e15923b2d4f7e114b9d7a2e658a10206531a4ee4 Mon Sep 17 00:00:00 2001 From: John Niang Date: Wed, 31 Jan 2024 15:44:41 +0800 Subject: [PATCH] Fix the problem of unable to enable/disable 2FA for non-admin users (#5290) Signed-off-by: John Niang --- .../main/resources/extensions/role-template-authenticated.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/src/main/resources/extensions/role-template-authenticated.yaml b/application/src/main/resources/extensions/role-template-authenticated.yaml index 03055e067..2c2bf3bd5 100644 --- a/application/src/main/resources/extensions/role-template-authenticated.yaml +++ b/application/src/main/resources/extensions/role-template-authenticated.yaml @@ -127,7 +127,7 @@ metadata: halo.run/hidden: "true" rules: - apiGroups: [ "api.security.halo.run" ] - resources: [ "authentications", "authentications/totp" ] + resources: [ "authentications", "authentications/totp", "authentications/settings" ] verbs: [ "*" ] --- apiVersion: v1alpha1