mirror of
https://github.com/usememos/memos.git
synced 2024-12-26 07:01:17 +08:00
chore: fix resource link
This commit is contained in:
parent
6db427e396
commit
76c936357b
2 changed files with 1 additions and 7 deletions
|
@ -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]
|
||||
}
|
||||
|
||||
|
|
|
@ -132,8 +132,7 @@ const Resources = () => {
|
|||
{relatedMemo && (
|
||||
<Link
|
||||
className="shrink-0 text-xs ml-1 text-gray-400 hover:underline hover:text-blue-600"
|
||||
to={`/m/${relatedMemo.name}`}
|
||||
target="_blank"
|
||||
to={`/m/${relatedMemo.resourceId}`}
|
||||
>
|
||||
#{extractMemoIdFromName(relatedMemo.name)}
|
||||
</Link>
|
||||
|
|
Loading…
Reference in a new issue