mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 02:50:39 +00:00
clear SharedWithMe.vue view
This commit is contained in:
@@ -28,9 +28,14 @@ class ShareController extends Controller
|
||||
CreateShareRequest $request,
|
||||
SendViaEmailAction $sendLinkToEmailAction,
|
||||
): ShareResource {
|
||||
$type = $request->input('type') === 'folder' ? 'folder' : 'file';
|
||||
$item = get_item($request->input('id'), $type);
|
||||
|
||||
$this->authorize('owner', $item);
|
||||
|
||||
$shared = Share::create([
|
||||
'password' => $request->has('password') ? bcrypt($request->input('password')) : null,
|
||||
'type' => $request->input('type') === 'folder' ? 'folder' : 'file',
|
||||
'type' => $type,
|
||||
'is_protected' => $request->input('isPassword'),
|
||||
'permission' => $request->input('permission') ?? null,
|
||||
'expire_in' => $request->input('expiration') ?? null,
|
||||
|
||||
Reference in New Issue
Block a user