Skip to content

Commit

Permalink
- Fix Configuration singleton loading breaking the migrations of geo…
Browse files Browse the repository at this point in the history
…node
  • Loading branch information
afabiani committed Jul 16, 2021
1 parent b20d8e2 commit cb0a39d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions geonode_mapstore_client/templatetags/get_menu_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@

register = template.Library()

config = Configuration.load()


def _handle_single_item(menu_item):
m_item = {}
Expand Down Expand Up @@ -77,7 +75,7 @@ def get_base_right_topbar_menu(context):
},
]
}
if user.is_authenticated and not config.read_only:
if user.is_authenticated and not Configuration.load().read_only:
about['items'].extend([
{
"type": "divider"
Expand Down Expand Up @@ -111,7 +109,7 @@ def get_user_menu(context):
"label": "Register",
"type": "link",
"href": "/account/signup/?next=/"
} if settings.ACCOUNT_OPEN_SIGNUP and not config.read_only else None,
} if settings.ACCOUNT_OPEN_SIGNUP and not Configuration.load().read_only else None,
{
"label": "Sign in",
"type": "link",
Expand Down

0 comments on commit cb0a39d

Please sign in to comment.