3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-05-01 12:15:46 +00:00

Additional doc blocks, added private_uploads path

This commit is contained in:
snipe
2016-03-25 15:50:08 -07:00
parent 27543d16f6
commit bddb7fca23
25 changed files with 229 additions and 45 deletions

View File

@ -1,4 +1,13 @@
<?php
/**
* This controller handles all actions related to Licenses and
* License Seats for the Snipe-IT Asset Management application.
*
* PHP version 5.5.9
* @package Snipe-IT
* @version v1.0
*/
namespace App\Http\Controllers;
use Assets;
@ -790,7 +799,7 @@ class LicensesController extends Controller
$license = License::find($licenseId);
// the license is valid
$destinationPath = storage_path().'/app/private_uploads';
$destinationPath = config('app.private_uploads').'/licenses';
if (isset($license->id)) {
@ -866,7 +875,7 @@ class LicensesController extends Controller
public function getDeleteFile($licenseId = null, $fileId = null)
{
$license = License::find($licenseId);
$destinationPath = storage_path().'/app/private_uploads';
$destinationPath = config('app.private_uploads').'/licenses';
// the license is valid
if (isset($license->id)) {