Skip to content

Commit

Permalink
Hide cap settings from settings menu
Browse files Browse the repository at this point in the history
  • Loading branch information
erick-otenyo committed Apr 5, 2024
1 parent 98c4e5a commit e3b0e86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/cap/wagtail_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_submenu_items(self):

@hooks.register('construct_settings_menu')
def hide_settings_menu_item(request, menu_items):
hidden_settings = ["cap-geomanager-settings"]
hidden_settings = ["cap-settings", "cap-geomanager-settings"]
menu_items[:] = [item for item in menu_items if item.name not in hidden_settings]


Expand Down

0 comments on commit e3b0e86

Please sign in to comment.