- gate implementation

- protected shared view fix
This commit is contained in:
Čarodej
2021-09-24 10:52:19 +02:00
parent d40108f6a9
commit 19cc01131b
84 changed files with 876 additions and 406 deletions

View File

@@ -27,7 +27,7 @@ class VisitorUploadFileController extends Controller
UploadRequest $request,
Share $shared,
): Response | array {
if (is_demo_account($shared->user->email)) {
if (is_demo_account()) {
return ($this->fakeUploadFile)($request);
}
@@ -40,7 +40,7 @@ class VisitorUploadFileController extends Controller
}
// Check access to requested directory
($this->verifyAccessToItem)($request->input('folder_id'), $shared);
($this->verifyAccessToItem)($request->input('parent_id'), $shared);
// Return new uploaded file
$new_file = ($this->uploadFile)($request, $shared);