mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Move comment location
This commit is contained in:
parent
47763d1e1a
commit
eb2d7b1f4f
|
@ -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.
|
// 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
|
// 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']));
|
event(new NoteAdded($item, Auth::user(), $validated['note']));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue