mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 15:44:11 -08:00
a914dacf8e
* Adds digital signature to asset acceptance This is still a little broken - the history is displaying “Deleted user”, since there is no item type listed. Saving the item_type as App\Models\User tries to update accepted on the users table, which obviously doesn’t exist. * Use asset facade for folks in subdirs * Possible fix for weird accepted/declined display * Display signature in modal popup if sigs are required * Wrap that display file in auth middleware, just to be sure. It shoudl fail if you’re not authorized since you’re not logged in, but better safe than sorry * Fixed header section of layout * Removed extra drop from migration rollback
19 lines
437 B
PHP
19 lines
437 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Helpers\Helper;
|
|
use Response;
|
|
|
|
class ActionlogController extends Controller
|
|
{
|
|
public function displaySig($filename)
|
|
{
|
|
|
|
$file = config('app.private_uploads') . '/signatures/' . $filename;
|
|
$filetype = Helper::checkUploadIsImage($file);
|
|
$contents = file_get_contents($file);
|
|
return Response::make($contents)->header('Content-Type', $filetype);
|
|
}
|
|
}
|