chore: fix method name

This commit is contained in:
Steven 2023-08-13 00:00:14 +08:00
parent 9c6f85e938
commit 96ab5b226d

View File

@ -13,7 +13,7 @@ func isUnauthorizeAllowedMethod(methodName string) bool {
} }
var allowedMethodsOnlyForAdmin = map[string]bool{ var allowedMethodsOnlyForAdmin = map[string]bool{
"/slash.v2.UserService/CreateUser": true, "/slash.api.v2.UserService/CreateUser": true,
} }
// isOnlyForAdminAllowedMethod returns true if the method is allowed to be called only by admin. // isOnlyForAdminAllowedMethod returns true if the method is allowed to be called only by admin.