License Checkin (legacy): Fixes FD-55734 - License Single-Seat Checkin Uses Incorrect Permission Check

This commit is contained in:
snipe
2026-06-08 20:59:10 +01:00
parent 5658cd6dd4
commit 80c8aa41dc
@@ -36,7 +36,7 @@ class LicenseCheckinController extends Controller
{
// Check if the asset exists
$license = License::find($licenseSeat->license_id);
$this->authorize('checkout', $license);
$this->authorize('checkin', $license);
return view('licenses/checkin', compact('licenseSeat'))->with('backto', $backTo);
}
@@ -70,7 +70,7 @@ class LicenseCheckinController extends Controller
return redirect()->route('licenses.index')->with('error', trans('admin/licenses/message.checkin.error'));
}
$this->authorize('checkout', $license);
$this->authorize('checkin', $license);
// Declare the rules for the form validation
$rules = [