mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 05:26:02 +08:00
Multiple grant badges.
This commit is contained in:
@ -30,11 +30,12 @@ class Admin::BadgesController < Admin::AdminController
|
||||
end
|
||||
|
||||
def update_badge_from_params(badge)
|
||||
params.permit(:name, :description, :badge_type_id, :allow_title)
|
||||
params.permit(:name, :description, :badge_type_id, :allow_title, :multiple_grant)
|
||||
badge.name = params[:name]
|
||||
badge.description = params[:description]
|
||||
badge.badge_type = BadgeType.find(params[:badge_type_id])
|
||||
badge.allow_title = params[:allow_title]
|
||||
badge.multiple_grant = params[:multiple_grant]
|
||||
badge
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user