- public sharing refactored part 2

This commit is contained in:
Peter Papp
2021-03-19 09:04:18 +01:00
parent db9900fcfb
commit ed8ab2978f
22 changed files with 1296 additions and 1190 deletions

View File

@@ -228,6 +228,9 @@ class EditShareItemsController extends Controller
*/
public function zip_folder($id, Share $shared)
{
// Check ability to access protected share record
$this->helper->check_protected_share_record($shared);
// Check access to requested folder
$this->helper->check_item_access($id, $shared);
@@ -261,6 +264,9 @@ class EditShareItemsController extends Controller
*/
public function zip_multiple_files(Request $request, Share $shared)
{
// Check ability to access protected share record
$this->helper->check_protected_share_record($shared);
$file_parent_folders = File::whereUserId($shared->user_id)
->whereIn('id', $request->items)
->get()