Skip to content

Commit

Permalink
update framework requirment
Browse files Browse the repository at this point in the history
  • Loading branch information
ebakernz committed May 23, 2024
1 parent 18b1bd9 commit 2ac9cb0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"email": "[email protected]"
}],
"require": {
"silverstripe/framework": "~4.0 || ^5"
"silverstripe/framework": "^4 || ^5"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 0 additions & 4 deletions src/extensions/MisdirectionAdminTestingExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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')) {

Expand Down

0 comments on commit 2ac9cb0

Please sign in to comment.