tinycm rev 88

Small fix to commnity plugin
author Christophe Lincoln <pankso@slitaz.org>
date Sun Feb 12 01:23:48 2017 +0100 (2017-02-12)
parents 2a13332944ee
children 12c983066e52
files plugins/community/community.cgi
line diff
     1.1 --- a/plugins/community/community.cgi	Sun Feb 12 00:18:54 2017 +0100
     1.2 +++ b/plugins/community/community.cgi	Sun Feb 12 01:23:48 2017 +0100
     1.3 @@ -12,6 +12,12 @@
     1.4  		html_header
     1.5  		user_box
     1.6  		
     1.7 +		# Wall is only for logged users
     1.8 +		if ! check_auth; then
     1.9 +			gettext "You must be logged to read the wall" 
    1.10 +			html_footer && exit 0
    1.11 +		fi
    1.12 +		
    1.13  		# Save any new message first
    1.14  		if [ "$(GET message)" ] && check_auth; then
    1.15  			# Prevent more than one message by minute peer user