1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Added permission visiblity control to image-delete button

Includes test to cover.
For #3697
This commit is contained in:
Dan Brown
2022-09-05 15:52:12 +01:00
parent b698bb0e07
commit fbef0d06f2
3 changed files with 32 additions and 7 deletions

View File

@@ -14,12 +14,9 @@ use Illuminate\Validation\ValidationException;
class ImageController extends Controller
{
protected $imageRepo;
protected $imageService;
/**
* ImageController constructor.
*/
protected ImageRepo $imageRepo;
protected ImageService $imageService;
public function __construct(ImageRepo $imageRepo, ImageService $imageService)
{
$this->imageRepo = $imageRepo;