]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/FavouriteController.php
Fix timestamp in API docs example response
[bookstack] / app / Http / Controllers / FavouriteController.php
index b4cbdf5c2aa35f1eea2507a3e14fd8aedca9563e..e46442a643449348ed0f212fee1fb7a00c091b65 100644 (file)
@@ -87,7 +87,7 @@ class FavouriteController extends Controller
 
         $modelInstance = $model->newQuery()
             ->where('id', '=', $modelInfo['id'])
-            ->first(['id', 'name']);
+            ->first(['id', 'name', 'owned_by']);
 
         $inaccessibleEntity = ($modelInstance instanceof Entity && !userCan('view', $modelInstance));
         if (is_null($modelInstance) || $inaccessibleEntity) {