mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 17:40:43 +08:00
DEV: add an option in user-chooser to list staged users (#13201)
* DEV: add an option in user-chooser to list staged users * included rspec tests * force boolean
This commit is contained in:
@ -1074,6 +1074,7 @@ class UsersController < ApplicationController
|
||||
groups: @groups
|
||||
}
|
||||
|
||||
options[:include_staged_users] = !!ActiveModel::Type::Boolean.new.cast(params[:include_staged_users])
|
||||
options[:topic_id] = topic_id if topic_id
|
||||
options[:category_id] = category_id if category_id
|
||||
|
||||
|
Reference in New Issue
Block a user