mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Nicer selection of suspend duration
This commit is contained in:
@@ -53,7 +53,7 @@ class Admin::UsersController < Admin::AdminController
|
||||
|
||||
def suspend
|
||||
guardian.ensure_can_suspend!(@user)
|
||||
@user.suspended_till = params[:duration].to_i.days.from_now
|
||||
@user.suspended_till = params[:suspend_until]
|
||||
@user.suspended_at = DateTime.now
|
||||
|
||||
message = params[:message]
|
||||
|
||||
Reference in New Issue
Block a user