3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-06 16:45:55 +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

@ -421,7 +421,9 @@ class SettingsController extends Controller
*/
public function getBackups()
{
$path = storage_path().'/app/'.config('laravel-backup.destination.path');
$path = config('app.private_uploads').'/backups';
$files = array();
if ($handle = opendir($path)) {
@ -479,7 +481,7 @@ class SettingsController extends Controller
public function downloadFile($filename = null)
{
if (!config('app.lock_passwords')) {
$path = storage_path().'/app/'.config('laravel-backup.destination.path');
$path = config('app.private_uploads').'/backups';
$file = $path.'/'.$filename;
if (file_exists($file)) {
return Response::download($file);