s4

changeset 371:302eae8f723b

Display blog-mode only when user is group owner
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 26 Nov 2016 10:08:33 +0859
parents 0cfba5e4c7a3
children 8ab42b98ce6c
files s4-funcs.sh
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Sat Nov 26 09:49:00 2016 +0859
     1.2 +++ b/s4-funcs.sh	Sat Nov 26 10:08:33 2016 +0859
     1.3 @@ -2058,6 +2058,7 @@
     1.4    if isgrpowner "$user" "$grp"; then
     1.5      echo "<p><a href=\"?groupconf+$rowid\">グループ情報の編集</a>"
     1.6      iamowner=$rowid
     1.7 +    colmd=" mode"
     1.8    fi
     1.9    if [ -n "$ismember" ]; then
    1.10      echo "${iamowner:+ / }<a href=\"?blog+$rowid\">グループの新規話題作成</a>"
    1.11 @@ -2120,7 +2121,8 @@
    1.12  EOF
    1.13    cond="where a.id in (select id from blog_s where key='owner' and val=$qgrp) order by ctime desc"
    1.14    DT_CHLD=article:blogid \
    1.15 -	 DT_VIEW=replyblog dumptable html blog 'ctime team title heading mode' "$cond"
    1.16 +	 DT_VIEW=replyblog dumptable html blog \
    1.17 +	 'ctime team title heading$colmd' "$cond"
    1.18  
    1.19    getgname="(select gname from grp where rowid=$rowid)"
    1.20    c="group by a.name having a.name in (select user from grp_mem where gname=$getgname)"