Skip to content

Commit

Permalink
Revert SinglePageAdmin to concrete class (#23)
Browse files Browse the repository at this point in the history
PermissionProviders are instantiated when loading admin sections that 
allow users to change user/group permissions.
  • Loading branch information
hchokshi authored and stevie-mayhew committed Jun 28, 2018
1 parent 74a1f92 commit aaf4193
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions _config.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

use LittleGiant\SinglePageAdmin\SinglePageAdmin;
use SilverStripe\Admin\CMSMenu;

CMSMenu::remove_menu_class(SinglePageAdmin::class);
2 changes: 1 addition & 1 deletion src/LittleGiant/SinglePageAdmin/SinglePageAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
* @package SinglePageAdmin
* @author Stevie Mayhew
*/
abstract class SinglePageAdmin extends LeftAndMain implements PermissionProvider
class SinglePageAdmin extends LeftAndMain implements PermissionProvider
{
/**
* As of 4.0 all subclasses of LeftAndMain have to have a
Expand Down

0 comments on commit aaf4193

Please sign in to comment.