# HG changeset patch # User Christophe Lincoln # Date 1389130320 -3600 # Node ID 41de444b2aa370500df22d412b8cb69d6a842304 # Parent 1fa682f972c9de6f1132c51fc141e343c7bdb046 Only logged users can see online users diff -r 1fa682f972c9 -r 41de444b2aa3 web/plugins/dashboard/dashboard.cgi --- a/web/plugins/dashboard/dashboard.cgi Tue Jan 07 22:22:25 2014 +0100 +++ b/web/plugins/dashboard/dashboard.cgi Tue Jan 07 22:32:00 2014 +0100 @@ -40,8 +40,15 @@ header html_header user_box + if ! check_auth; then + gettext "You must be logged in to view online user" + exit 0 + fi cat << EOT

Online users

+
+ Dashboard +
 EOT
 		for u in $(ls $sessions)
@@ -63,11 +70,10 @@
 		html_header
 		user_box
 		if ! check_auth; then
-			gettext "You must be logged in to view the dashboard."
+			gettext "You must be logged in to view the dashboard"
 			exit 0
 		fi
 		if check_auth && admin_user; then
-			# Online users should not be public ?
 			admintools="List users"
 		fi
 		cat << EOT
diff -r 1fa682f972c9 -r 41de444b2aa3 web/style.css
--- a/web/style.css	Tue Jan 07 22:22:25 2014 +0100
+++ b/web/style.css	Tue Jan 07 22:32:00 2014 +0100
@@ -114,7 +114,7 @@
 	margin: 40px auto;
 	padding: 0 20px;
 	text-align: justify;
-	max-width: 680px;
+	max-width: 720px;
 }
 
 #newbug textarea { width: 460px; }