Mercurial > hgrepos > hgweb.cgi > s4
diff s4-blog.sh @ 401:6dc23f0b7279
Allow lshandout on frozen board
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 30 Jan 2017 19:57:35 +0900 |
parents | db25589d864c |
children | 58c291b6a81f |
line wrap: on
line diff
--- a/s4-blog.sh Tue Dec 27 13:55:46 2016 +0859 +++ b/s4-blog.sh Mon Jan 30 19:57:35 2017 +0900 @@ -327,7 +327,9 @@ lshandout() { # $1=rowid of blog - if ! blog_writable $1 $user; then + blog_writable $1 $user + r=$? # =0: writable, $BLOG_NOTMEM bit set => not member + if [ $((rc & $BLOG_NOTMEM)) -gt 0 ] ; then echo "メンバー以外は利用できません。" | html p; return fi time=`getvalbyid blog ctime $1|colrm 11`