From 1b79fd011c05d842401590c6ec1486730a137031 Mon Sep 17 00:00:00 2001 From: Julian Prieber Date: Fri, 22 Nov 2024 18:20:04 +0100 Subject: [PATCH] Add admin check --- app/Http/Controllers/UserController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");