Skip to content

Commit 1b79fd0

Browse files
committed
Add admin check
1 parent ac6daad commit 1b79fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Http/Controllers/UserController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ public function editTheme(request $request)
731731

732732

733733

734-
if (!empty($zipfile)) {
734+
if (!empty($zipfile) && Auth::user()->role == 'admin') {
735735

736736
$zipfile->move(base_path('/themes'), "temp.zip");
737737

0 commit comments

Comments
 (0)