mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
FIX: Respond to user search correctly when category_id is blank
Previously it would search for category_id=0, which does not exist. With the new permission checks, this returns a 404
This commit is contained in:
@ -921,8 +921,7 @@ class UsersController < ApplicationController
|
||||
topic_id = params[:topic_id]
|
||||
topic_id = topic_id.to_i if topic_id
|
||||
|
||||
category_id = params[:category_id]
|
||||
category_id = category_id.to_i if category_id
|
||||
category_id = params[:category_id].to_i if category_id.present?
|
||||
|
||||
topic_allowed_users = params[:topic_allowed_users] || false
|
||||
|
||||
|
Reference in New Issue
Block a user