From 770607f93f7bf38a4f1c39ba000a7780538df940 Mon Sep 17 00:00:00 2001 From: Steven Date: Sun, 17 Dec 2023 11:37:38 +0800 Subject: [PATCH] fix: add markdown service to acl --- api/v2/acl_config.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/api/v2/acl_config.go b/api/v2/acl_config.go index 6b09d8fb6..6bf804b25 100644 --- a/api/v2/acl_config.go +++ b/api/v2/acl_config.go @@ -3,10 +3,11 @@ package v2 import "strings" var authenticationAllowlistMethods = map[string]bool{ - "/memos.api.v2.SystemService/GetSystemInfo": true, - "/memos.api.v2.AuthService/GetAuthStatus": true, - "/memos.api.v2.UserService/GetUser": true, - "/memos.api.v2.MemoService/ListMemos": true, + "/memos.api.v2.SystemService/GetSystemInfo": true, + "/memos.api.v2.AuthService/GetAuthStatus": true, + "/memos.api.v2.UserService/GetUser": true, + "/memos.api.v2.MemoService/ListMemos": true, + "/memos.api.v2.MarkdownService/ParseMarkdown": true, } // isUnauthorizeAllowedMethod returns whether the method is exempted from authentication.