[MM-20706] Drop 26 character requirement from post action IDs (#13225)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
1f3f8fbf57
Коммит
2d9e85e82a
@@ -496,17 +496,6 @@ func (c *Context) RequireJobType() *Context {
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *Context) RequireActionId() *Context {
|
||||
if c.Err != nil {
|
||||
return c
|
||||
}
|
||||
|
||||
if len(c.Params.ActionId) != 26 {
|
||||
c.SetInvalidUrlParam("action_id")
|
||||
}
|
||||
return c
|
||||
}
|
||||
|
||||
func (c *Context) RequireRoleId() *Context {
|
||||
if c.Err != nil {
|
||||
return c
|
||||
|
||||
Ссылка в новой задаче
Block a user