From 76c936357b7d83bfe6ef1fd19478a7617c60d083 Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 20 Mar 2024 08:51:32 +0800 Subject: [PATCH] chore: fix resource link --- server/route/api/v2/acl_config.go | 5 ----- web/src/pages/Resources.tsx | 3 +-- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/server/route/api/v2/acl_config.go b/server/route/api/v2/acl_config.go index 82f20c2f..2eb845b5 100644 --- a/server/route/api/v2/acl_config.go +++ b/server/route/api/v2/acl_config.go @@ -1,7 +1,5 @@ package v2 -import "strings" - var authenticationAllowlistMethods = map[string]bool{ "/memos.api.v2.WorkspaceService/GetWorkspaceProfile": true, "/memos.api.v2.WorkspaceSettingService/GetWorkspaceSetting": true, @@ -23,9 +21,6 @@ var authenticationAllowlistMethods = map[string]bool{ // isUnauthorizeAllowedMethod returns whether the method is exempted from authentication. func isUnauthorizeAllowedMethod(fullMethodName string) bool { - if strings.HasPrefix(fullMethodName, "/grpc.reflection") { - return true - } return authenticationAllowlistMethods[fullMethodName] } diff --git a/web/src/pages/Resources.tsx b/web/src/pages/Resources.tsx index ba6dbae4..14f10510 100644 --- a/web/src/pages/Resources.tsx +++ b/web/src/pages/Resources.tsx @@ -132,8 +132,7 @@ const Resources = () => { {relatedMemo && ( #{extractMemoIdFromName(relatedMemo.name)}