Add admin check

This commit is contained in:
Julian Prieber 2024-11-22 18:20:04 +01:00
parent ac6daad444
commit 1b79fd011c
1 changed files with 1 additions and 1 deletions

View File

@ -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"); $zipfile->move(base_path('/themes'), "temp.zip");