diff --git a/application/src/main/resources/extensions/role-template-notification.yaml b/application/src/main/resources/extensions/role-template-notification.yaml index 0f59b87ae..9ddfc8cab 100644 --- a/application/src/main/resources/extensions/role-template-notification.yaml +++ b/application/src/main/resources/extensions/role-template-notification.yaml @@ -4,12 +4,14 @@ metadata: name: role-template-notifier-config labels: halo.run/role-template: "true" + halo.run/hidden: "true" annotations: rbac.authorization.halo.run/module: "Notification Configuration" rbac.authorization.halo.run/display-name: "Configure Notifier" - rbac.authorization.halo.run/ui-permissions: | - ["system:notifier:configuration"] rules: + - apiGroups: [ "notification.halo.run" ] + resources: [ "notifierDescriptors" ] + verbs: [ "*" ] - apiGroups: [ "api.console.halo.run" ] resources: [ "notifiers/sender-config" ] verbs: [ "get", "update" ] diff --git a/application/src/main/resources/extensions/role-template-setting.yaml b/application/src/main/resources/extensions/role-template-setting.yaml index 1e891e247..7507ee62d 100644 --- a/application/src/main/resources/extensions/role-template-setting.yaml +++ b/application/src/main/resources/extensions/role-template-setting.yaml @@ -5,11 +5,11 @@ metadata: labels: halo.run/role-template: "true" annotations: - rbac.authorization.halo.run/dependencies: "[ \"role-template-view-settings\" ]" + rbac.authorization.halo.run/dependencies: "[ \"role-template-view-settings\", \"role-template-notifier-config\" ]" rbac.authorization.halo.run/module: "Settings Management" rbac.authorization.halo.run/display-name: "Setting Manage" rbac.authorization.halo.run/ui-permissions: | - ["system:settings:manage"] + ["system:settings:manage", "system:notifier:configuration"] rules: - apiGroups: [ "" ] resources: [ "settings" ] diff --git a/ui/src/locales/en.yaml b/ui/src/locales/en.yaml index cf4bb1888..15d978edd 100644 --- a/ui/src/locales/en.yaml +++ b/ui/src/locales/en.yaml @@ -1369,7 +1369,7 @@ core: Cache Management: Cache Cache Manage: Cache Manage Notification Configuration: Notification Configuration - Configure Notifier: Configure Notifier + role-template-notifier-config: Configure Notifier Post Attachment Manager: Allow images to be uploaded in posts Post Author: Allows you to manage your own posts Post Contributor: Contributions allowed diff --git a/ui/src/locales/zh-CN.yaml b/ui/src/locales/zh-CN.yaml index bcb5cc581..bbbc12960 100644 --- a/ui/src/locales/zh-CN.yaml +++ b/ui/src/locales/zh-CN.yaml @@ -1317,7 +1317,7 @@ core: Cache Management: 缓存 Cache Manage: 缓存管理 Notification Configuration: 通知配置 - Configure Notifier: 配置通知器 + role-template-notifier-config: 配置通知器 Post Contributor: 允许投稿 Post Author: 允许管理自己的文章 Post Attachment Manager: 允许在文章中上传图片 diff --git a/ui/src/locales/zh-TW.yaml b/ui/src/locales/zh-TW.yaml index 9163c6f8e..8feeebc9b 100644 --- a/ui/src/locales/zh-TW.yaml +++ b/ui/src/locales/zh-TW.yaml @@ -1282,7 +1282,7 @@ core: Actuator Manage: 訪問系統指標 Cache Management: 緩存 Cache Manage: 緩存管理 - Configure Notifier: 配置通知器 + role-template-notifier-config: 配置通知器 Notification Configuration: 通知配置 Post Attachment Manager: 允許在文章中上傳圖片 Post Author: 允許管理自己的文章