Skip to content

Commit

Permalink
Make HistoryViewerController a subclass of FormSchemaController
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Nov 12, 2024
1 parent df327e2 commit 36f7951
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Controllers/HistoryViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace SilverStripe\VersionedAdmin\Controllers;

use InvalidArgumentException;
use SilverStripe\Admin\LeftAndMain;
use SilverStripe\Admin\FormSchemaController;
use SilverStripe\Admin\LeftAndMainFormRequestHandler;
use SilverStripe\Control\HTTPRequest;
use SilverStripe\Control\HTTPResponse;
Expand All @@ -22,7 +22,7 @@
* The HistoryViewerController provides AJAX endpoints for React to enable functionality, such as retrieving the form
* schema.
*/
class HistoryViewerController extends LeftAndMain
class HistoryViewerController extends FormSchemaController
{
/**
* @var string
Expand All @@ -42,8 +42,6 @@ class HistoryViewerController extends LeftAndMain

private static $required_permission_codes = 'CMS_ACCESS_CMSMain';

private static $ignore_menuitem = true;

private static array $url_handlers = [
'GET api/read' => 'apiRead',
'POST api/revert' => 'apiRevert',
Expand Down

0 comments on commit 36f7951

Please sign in to comment.