Tidied up license check

This commit is contained in:
snipe 2019-05-24 05:26:52 -07:00
parent d4725b61be
commit 8914d14681

View file

@ -545,7 +545,7 @@ class LicensesController extends Controller
$destinationPath = config('app.private_uploads').'/licenses';
// the license is valid
if (isset($license->id)) {
if ($license) {
$this->authorize('edit', $license);
$log = Actionlog::find($fileId);
$full_filename = $destinationPath.'/'.$log->filename;