Apply role filters for /get/users in channel (#21251)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b3ffec28c6
Коммит
28698abb9f
@@ -742,6 +742,8 @@ func (us SqlUserStore) GetProfilesInChannel(options *model.UserGetOptions) ([]*m
|
||||
query = query.Where("u.DeleteAt = 0")
|
||||
}
|
||||
|
||||
query = applyMultiRoleFilters(query, options.Roles, options.TeamRoles, options.ChannelRoles, us.DriverName() == model.DatabaseDriverPostgres)
|
||||
|
||||
queryString, args, err := query.ToSql()
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "get_profiles_in_channel_tosql")
|
||||
|
||||
Ссылка в новой задаче
Block a user