Extensibility: Allow plugins to munge user params

This commit is contained in:
Robin Ward 2018-02-16 19:11:41 -05:00
parent a2327b4897
commit 02093ecbdd

View File

@ -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