diff --git a/composer.json b/composer.json index c9af3b1..513244e 100644 --- a/composer.json +++ b/composer.json @@ -20,7 +20,7 @@ "email": "nathan@symbiote.com.au" }], "require": { - "silverstripe/framework": "~4.0 || ^5" + "silverstripe/framework": "^4 || ^5" }, "autoload": { "psr-4": { diff --git a/src/extensions/MisdirectionAdminTestingExtension.php b/src/extensions/MisdirectionAdminTestingExtension.php index 85e4780..523c9ba 100644 --- a/src/extensions/MisdirectionAdminTestingExtension.php +++ b/src/extensions/MisdirectionAdminTestingExtension.php @@ -23,10 +23,6 @@ public function updateEditForm($form) { Requirements::css('nglasl/silverstripe-misdirection: client/css/misdirection.css'); // Restrict this functionality to administrators. - - // $user = Member::currentUserID(); - // if(Permission::checkMember($user, 'ADMIN')) { - $member = Security::getCurrentUser(); if (Permission::checkMember($member, 'ADMIN')) {