Move comment location

This commit is contained in:
Marcus Moore 2024-09-26 12:14:00 -07:00
parent 47763d1e1a
commit eb2d7b1f4f
No known key found for this signature in database

View file

@ -22,10 +22,10 @@ class NotesController extends Controller
],
]);
$item = Asset::findOrFail($request->input("id"));
$this->authorize('update', $item);
// This can be made dynamic by using $request->input('type') to determine which model type to add the note to.
// For now, we are only placing this on Assets
$item = Asset::findOrFail($request->input("id"));
$this->authorize('update', $item);
event(new NoteAdded($item, Auth::user(), $validated['note']));