Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: acl config

Steven17ecfb5cf573
diff --git a/server/router/api/v1/acl_config.go b/server/router/api/v1/acl_config.go
index 4885f028a..5661a9b48 100644
--- a/server/router/api/v1/acl_config.go
+++ b/server/router/api/v1/acl_config.go
@@ -15,11 +15,13 @@ var authenticationAllowlistMethods = map[string]bool{
"/memos.api.v1.UserService/GetUserAvatarBinary": true,
"/memos.api.v1.UserService/SearchUsers": true,
"/memos.api.v1.MemoService/GetMemo": true,
+ "/memos.api.v1.MemoService/GetMemoByUid": true,
"/memos.api.v1.MemoService/ListMemos": true,
"/memos.api.v1.MemoService/ListMemoTags": true,
"/memos.api.v1.MemoService/SearchMemos": true,
"/memos.api.v1.MarkdownService/GetLinkMetadata": true,
"/memos.api.v1.ResourceService/GetResourceBinary": true,
+ "/memos.api.v1.ResourceService/GetResourceByUid": true,
}
// isUnauthorizeAllowedMethod returns whether the method is exempted from authentication.