Mercurial > hgrepos > hgweb.cgi > 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 wrap: on
line diff
--- a/s4-funcs.sh Sat Nov 26 09:49:00 2016 +0859 +++ b/s4-funcs.sh Sat Nov 26 10:08:33 2016 +0859 @@ -2058,6 +2058,7 @@ if isgrpowner "$user" "$grp"; then echo "<p><a href=\"?groupconf+$rowid\">グループ情報の編集</a>" iamowner=$rowid + colmd=" mode" fi if [ -n "$ismember" ]; then echo "${iamowner:+ / }<a href=\"?blog+$rowid\">グループの新規話題作成</a>" @@ -2120,7 +2121,8 @@ EOF cond="where a.id in (select id from blog_s where key='owner' and val=$qgrp) order by ctime desc" DT_CHLD=article:blogid \ - DT_VIEW=replyblog dumptable html blog 'ctime team title heading mode' "$cond" + DT_VIEW=replyblog dumptable html blog \ + 'ctime team title heading$colmd' "$cond" getgname="(select gname from grp where rowid=$rowid)" c="group by a.name having a.name in (select user from grp_mem where gname=$getgname)"