Skip to content

Commit

Permalink
Add call to request.user in Entry.get_ngeo_index_vars
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-morvan committed Aug 25, 2023
1 parent b718e91 commit 2e62794
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions geoportal/c2cgeoportal_geoportal/views/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def testi18n(self) -> Dict[str, Any]:

def get_ngeo_index_vars(self) -> Dict[str, Any]:
set_common_headers(self.request, "index", Cache.PUBLIC_NO, content_type="text/html")
# Force urllogin to be converted to cookie when requesting the main HTML page
self.request.user # pylint: disable=pointless-statement
return {}

@staticmethod
Expand Down

0 comments on commit 2e62794

Please sign in to comment.