Skip to content

Commit

Permalink
Add admin check
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianPrieber committed Nov 22, 2024
1 parent ac6daad commit 1b79fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/UserController.php
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ public function editTheme(request $request)



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

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

Expand Down

0 comments on commit 1b79fd0

Please sign in to comment.