Fixed image delete permission issue

Also fixed missing translations and wrote tests to cover issue.
Fixes #258
This commit is contained in:
Dan Brown
2017-01-08 19:19:30 +00:00
parent f7f86ff821
commit 581c382f65
4 changed files with 53 additions and 2 deletions

View File

@ -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
];
});