]> BookStack Code Mirror - bookstack/blobdiff - app/Uploads/Controllers/DrawioImageController.php
Permissions: Cleanup after review of enum implementation PR
[bookstack] / app / Uploads / Controllers / DrawioImageController.php
index aff27b3b14158817c1eb96cf0b70245262660d11..f44acd997d2c1a07a5f0bc981fafbc1eefa210f1 100644 (file)
@@ -82,7 +82,7 @@ class DrawioImageController extends Controller
             return $this->jsonError(trans('errors.drawing_data_not_found'), 404);
         }
 
-        if ($image->type !== 'drawio' || !userCan('page-view', $image->getPage())) {
+        if ($image->type !== 'drawio' || !userCan(Permission::PageView, $image->getPage())) {
             return $this->jsonError(trans('errors.drawing_data_not_found'), 404);
         }