Remove the read_channel permission to unfollow a thread (#20662)

Этот коммит содержится в:
Vishal
2022-08-02 12:12:41 +05:30
коммит произвёл GitHub
родитель fa768e0fa7
Коммит 276594608c

Просмотреть файл

@@ -3172,11 +3172,6 @@ func unfollowThreadByUser(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
if !c.App.SessionHasPermissionToChannelByPost(*c.AppContext.Session(), c.Params.ThreadId, model.PermissionReadChannel) {
c.SetPermissionError(model.PermissionReadChannel)
return
}
err := c.App.UpdateThreadFollowForUser(c.Params.UserId, c.Params.TeamId, c.Params.ThreadId, false)
if err != nil {
c.Err = err