mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
controller refactoring part 22
This commit is contained in:
@@ -17,8 +17,7 @@ class CreateFolderController extends Controller
|
||||
CreateFolderRequest $request,
|
||||
CreateFolderAction $createFolder,
|
||||
FakeCreateFolderAction $fakeCreateFolder,
|
||||
): Response|array {
|
||||
|
||||
): Response | array {
|
||||
// If is demo, return fake folder
|
||||
if (is_demo_account(Auth::user()->email)) {
|
||||
return ($fakeCreateFolder)($request);
|
||||
|
||||
Reference in New Issue
Block a user