diff --git a/app/Http/Controllers/UserController.php b/app/Http/Controllers/UserController.php index 4dd5f06..fbe2942 100755 --- a/app/Http/Controllers/UserController.php +++ b/app/Http/Controllers/UserController.php @@ -731,7 +731,7 @@ class UserController extends Controller - if (!empty($zipfile)) { + if (!empty($zipfile) && Auth::user()->role == 'admin') { $zipfile->move(base_path('/themes'), "temp.zip");