tazbug diff web/plugins/debug/debug.cgi @ rev 105

Overall improvments
author Christophe Lincoln <pankso@slitaz.org>
date Fri Feb 10 18:12:00 2017 +0100 (2017-02-10)
parents 6f798394f27e
children b9aaee394e0c
line diff
     1.1 --- a/web/plugins/debug/debug.cgi	Fri Feb 10 17:19:52 2017 +0100
     1.2 +++ b/web/plugins/debug/debug.cgi	Fri Feb 10 18:12:00 2017 +0100
     1.3 @@ -8,8 +8,8 @@
     1.4  	header
     1.5  	html_header
     1.6  	user_box
     1.7 -	if ! check_auth; then
     1.8 -		gettext "You must be logged in to view the dashboard"
     1.9 +	if check_auth && ! admin_user; then
    1.10 +		gettext "You must be admin to debug"
    1.11  		exit 0
    1.12  	fi
    1.13  	cat << EOT