mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-04 00:44:41 +08:00
Fixed image delete permission issue
Also fixed missing translations and wrote tests to cover issue. Fixes #258
This commit is contained in:
@ -59,4 +59,14 @@ $factory->define(BookStack\Tag::class, function ($faker) {
|
||||
'name' => $faker->city,
|
||||
'value' => $faker->sentence(3)
|
||||
];
|
||||
});
|
||||
|
||||
$factory->define(BookStack\Image::class, function ($faker) {
|
||||
return [
|
||||
'name' => $faker->slug . '.jpg',
|
||||
'url' => $faker->url,
|
||||
'path' => $faker->url,
|
||||
'type' => 'gallery',
|
||||
'uploaded_to' => 0
|
||||
];
|
||||
});
|
Reference in New Issue
Block a user