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

Settings: Added test to cover setting category by view

This commit is contained in:
Dan Brown
2024-10-11 13:33:07 +01:00
parent a3d0f7478f
commit 4dc75bad05
2 changed files with 14 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ class SettingController extends Controller
protected function ensureCategoryExists(string $category): void
{
if (!view()->exists('settings.categories.' . $category)) {
abort(404, 'Category not found');
abort(404);
}
}
}