mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Show logout link if they are logged in AND have ds_actor cookie
Otherwise an expired cookie will still cause the logout link to show.
This commit is contained in:
parent
18a64fbb29
commit
561c1d2d36
1 changed files with 1 additions and 1 deletions
|
|
@ -767,7 +767,7 @@ class Datasette:
|
|||
"actor": request.actor if request else None,
|
||||
"menu_links": menu_links,
|
||||
"display_actor": display_actor,
|
||||
"show_logout": request is not None and "ds_actor" in request.cookies,
|
||||
"show_logout": request is not None and "ds_actor" in request.cookies and request.actor,
|
||||
"app_css_hash": self.app_css_hash(),
|
||||
"zip": zip,
|
||||
"body_scripts": body_scripts,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue