mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-26 16:57:52 +01:00
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");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user