- when member upload files or create folder in team folder, the true owner of the content is creator of team member. That means the upload bandwidth and storage go to creator responsibility

This commit is contained in:
Čarodej
2022-03-30 09:34:25 +02:00
parent 0fbb8fd8ee
commit 0ca67c2348
31 changed files with 256 additions and 396 deletions

View File

@@ -158,7 +158,6 @@ class VisitorBrowseTest extends TestCase
->create([
'parent_id' => $root->id,
'name' => 'Documents',
'author' => 'user',
'user_id' => $user->id,
]);
@@ -168,7 +167,6 @@ class VisitorBrowseTest extends TestCase
'name' => 'Document',
'basename' => 'document.pdf',
'mimetype' => 'application/pdf',
'author' => 'user',
'type' => 'file',
'user_id' => $user->id,
]);
@@ -238,7 +236,6 @@ class VisitorBrowseTest extends TestCase
->create([
'name' => 'level 2',
'parent_id' => $folder_level_1->id,
'author' => 'user',
'user_id' => $user->id,
]);
@@ -246,7 +243,6 @@ class VisitorBrowseTest extends TestCase
->create([
'name' => 'level 3',
'parent_id' => $folder_level_2->id,
'author' => 'user',
'user_id' => $user->id,
]);
@@ -254,7 +250,6 @@ class VisitorBrowseTest extends TestCase
->create([
'name' => 'level 2 Sibling',
'parent_id' => $folder_level_1->id,
'author' => 'user',
'user_id' => $user->id,
]);

View File

@@ -306,7 +306,6 @@ class VisitorManipulatingTest extends TestCase
$folder = Folder::factory()
->create([
'user_id' => $user->id,
'author' => 'user',
]);
$share = Share::factory()
@@ -350,10 +349,6 @@ class VisitorManipulatingTest extends TestCase
])->assertStatus(201);
}
$this->assertDatabaseHas('files', [
'author' => 'visitor',
]);
$file = File::all()->last();
Storage::disk('local')