kopia lustrzana https://github.com/simonw/datasette
				
				
				
			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.pull/1069/head
							rodzic
							
								
									18a64fbb29
								
							
						
					
					
						commit
						561c1d2d36
					
				|  | @ -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, | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Simon Willison
						Simon Willison