Update ban time logic
This commit is contained in:
parent
4d2595dd39
commit
95bf7c239e
|
@ -56,7 +56,7 @@ class BanController extends Controller
|
|||
$ban = Ban::create([
|
||||
'userID' => $user->id,
|
||||
'reason' => $reason,
|
||||
'bannedUntil' => $expiryDate->toDateTimeString() ?? null,
|
||||
'bannedUntil' => $expiryDate,
|
||||
'userAgent' => "Unknown",
|
||||
'authorUserID' => Auth::user()->id
|
||||
]);
|
||||
|
|
|
@ -39,6 +39,7 @@ class BanPolicy
|
|||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\User $user
|
||||
* @param User $targetUser
|
||||
* @return mixed
|
||||
*/
|
||||
public function create(User $user, User $targetUser)
|
||||
|
|
Loading…
Reference in New Issue