Skip to content

Commit

Permalink
ENH Use config instead of runtime code to remove menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Oct 14, 2024
1 parent ed8ee37 commit d2dd58c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions _config.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,3 @@
]);
// enable ability to insert anchors
$editorConfig->insertButtonsAfter('sslink', 'anchor');

CMSMenu::remove_menu_class(CMSProfileController::class);
2 changes: 2 additions & 0 deletions code/CMSProfileController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ class CMSProfileController extends LeftAndMain

private static $tree_class = Member::class;

private static $ignore_menuitem = true;

public function getEditForm($id = null, $fields = null)
{
$this->setCurrentPageID(Security::getCurrentUser()->ID);
Expand Down

0 comments on commit d2dd58c

Please sign in to comment.