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:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user