]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/SettingController.php
Added additional testing for editor switching permissions
[bookstack] / app / Http / Controllers / SettingController.php
index 3d1c184cdcebe0acac5ac0ad441b8ef9c00aeb0d..2e46bbe409951ab082a0d47e2dd70132b51b1a65 100644 (file)
@@ -19,9 +19,17 @@ class SettingController extends Controller
     }
 
     /**
-     * Display a listing of the settings.
+     * Handle requests to the settings index path
      */
-    public function index(string $category)
+    public function index()
+    {
+        return redirect('/settings/features');
+    }
+
+    /**
+     * Display the settings for the given category.
+     */
+    public function category(string $category)
     {
         $this->ensureCategoryExists($category);
         $this->checkPermission('settings-manage');
@@ -67,7 +75,7 @@ class SettingController extends Controller
         }
 
         // Clear logo image if requested
-        if ($category === 'customization' &&  $request->get('app_logo_reset', null)) {
+        if ($category === 'customization' && $request->get('app_logo_reset', null)) {
             $this->imageRepo->destroyByType('system');
             setting()->remove('app-logo');
         }