chore: update get workspace setting

This commit is contained in:
Steven
2023-09-20 23:33:04 +08:00
parent 0af4903657
commit e82e61d54d
3 changed files with 38 additions and 5 deletions

View File

@ -2,7 +2,9 @@ package v2
import "strings"
var allowedMethodsWhenUnauthorized = map[string]bool{}
var allowedMethodsWhenUnauthorized = map[string]bool{
"/slash.api.v2.WorkspaceSettingService/GetWorkspaceSetting": true,
}
// isUnauthorizeAllowedMethod returns true if the method is allowed to be called when the user is not authorized.
func isUnauthorizeAllowedMethod(methodName string) bool {