Skip to content

Commit 2ba397b

Browse files
committed
check auth better
1 parent 4329f3e commit 2ba397b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/Http/Controllers/Admin/BanController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ public function create(CreateBanRequest $request)
120120

121121
public function show(Request $request, Ban $ban)
122122
{
123-
$this->authorize('view', [Auth::user(),$ban]);
123+
$this->authorize('view', $ban);
124124

125125
$target = $request->user()->can('viewName', $ban) ? $ban->target : __('admin.bans.ban-target-removed');
126126
$targetHtml = $request->user()->can('viewName', $ban)

0 commit comments

Comments
 (0)