mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-24 09:50:39 +00:00
- protect edition of team folder from team member
- zip migration deleted
This commit is contained in:
@@ -76,6 +76,8 @@ class TeamFoldersController extends Controller
|
||||
UpdateInvitationsAction $updateInvitations,
|
||||
UpdateMembersAction $updateMembers,
|
||||
): ResponseFactory | Response {
|
||||
$this->authorize('owner', $folder);
|
||||
|
||||
$updateInvitations(
|
||||
$folder,
|
||||
$request->input('invitations')
|
||||
@@ -91,6 +93,8 @@ class TeamFoldersController extends Controller
|
||||
|
||||
public function destroy(Folder $folder): ResponseFactory | Response
|
||||
{
|
||||
$this->authorize('owner', $folder);
|
||||
|
||||
// Delete existing invitations
|
||||
DB::table('team_folder_invitations')
|
||||
->where('parent_id', $folder->id)
|
||||
|
||||
Reference in New Issue
Block a user