mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-18 21:19:44 +00:00
chore: fix method name
This commit is contained in:
parent
9c6f85e938
commit
96ab5b226d
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user