mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Tidied up license check
This commit is contained in:
parent
d4725b61be
commit
8914d14681
|
@ -545,7 +545,7 @@ class LicensesController extends Controller
|
||||||
$destinationPath = config('app.private_uploads').'/licenses';
|
$destinationPath = config('app.private_uploads').'/licenses';
|
||||||
|
|
||||||
// the license is valid
|
// the license is valid
|
||||||
if (isset($license->id)) {
|
if ($license) {
|
||||||
$this->authorize('edit', $license);
|
$this->authorize('edit', $license);
|
||||||
$log = Actionlog::find($fileId);
|
$log = Actionlog::find($fileId);
|
||||||
$full_filename = $destinationPath.'/'.$log->filename;
|
$full_filename = $destinationPath.'/'.$log->filename;
|
||||||
|
|
Loading…
Reference in a new issue