From 14b0a6315fdf5f75c95ca87b410d3c3320d02090 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 28 Jul 2016 05:49:41 -0700 Subject: [PATCH 1/2] Pass users path to get_src --- app/Http/Controllers/UsersController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/UsersController.php b/app/Http/Controllers/UsersController.php index b178d28f9..e9868fa5b 100755 --- a/app/Http/Controllers/UsersController.php +++ b/app/Http/Controllers/UsersController.php @@ -145,7 +145,7 @@ class UsersController extends Controller } else { $user->groups()->sync(array()); } - + if (($request->input('email_user') == 1) && ($request->has('email'))) { // Send the credentials through email $data = array(); @@ -1079,7 +1079,7 @@ class UsersController extends Controller return redirect()->route('users')->with('error', trans('general.insufficient_permissions')); } else { $log = Actionlog::find($fileId); - $file = $log->get_src(); + $file = $log->get_src('users'); return Response::download($file); } } else { From 075f8fd02176180dfd7f3fb13f6f7f24ed00081d Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 28 Jul 2016 05:49:55 -0700 Subject: [PATCH 2/2] Fixed typo --- config/app.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app.php b/config/app.php index a55ce60c0..0a7dc4abe 100644 --- a/config/app.php +++ b/config/app.php @@ -117,7 +117,7 @@ return [ |-------------------------------------------------------------------------- | This is the path for any uploaded files that have to be run through the | auth system to ensure they are not visible to the public. These should be - | stored somewhere outside of the web root so that an unautenticated user + | stored somewhere outside of the web root so that an unauthenticated user | cannot access them. | | For example: license keys, contracts, etc.