mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
Extensibility: Allow plugins to munge user params
This commit is contained in:
parent
a2327b4897
commit
02093ecbdd
@ -975,7 +975,12 @@ class UsersController < ApplicationController
|
||||
result.merge!(params.permit(:active, :staged, :approved))
|
||||
end
|
||||
|
||||
result
|
||||
modify_user_params(result)
|
||||
end
|
||||
|
||||
# Plugins can use this to modify user parameters
|
||||
def modify_user_params(attrs)
|
||||
attrs
|
||||
end
|
||||
|
||||
def user_locale
|
||||
|
Loading…
Reference in New Issue
Block a user