Add admin check
This commit is contained in:
parent
ac6daad444
commit
1b79fd011c
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue