mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Handles the update method, that also has the ability parameter as edit instead of update"
q
This commit is contained in:
parent
ead59ecf78
commit
d7dc0e451e
|
@ -120,7 +120,7 @@ class ManufacturersController extends Controller
|
|||
*/
|
||||
public function update(ImageUploadRequest $request, $manufacturerId = null)
|
||||
{
|
||||
$this->authorize('edit', Manufacturer::class);
|
||||
$this->authorize('update', Manufacturer::class);
|
||||
// Check if the manufacturer exists
|
||||
if (is_null($manufacturer = Manufacturer::find($manufacturerId))) {
|
||||
// Redirect to the manufacturer page
|
||||
|
|
Loading…
Reference in a new issue