models: set more creator names explicitly.
Set creators explicitly for bans, BURs, comment votes, and posts.
This commit is contained in:
@@ -24,7 +24,7 @@ class BansController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
@ban = Ban.create(ban_params(:create))
|
||||
@ban = Ban.create(banner: CurrentUser.user, **ban_params(:create))
|
||||
|
||||
if @ban.errors.any?
|
||||
render :action => "new"
|
||||
|
||||
Reference in New Issue
Block a user