Mercurial > hgrepos > hgweb.cgi > s4
changeset 608:07ec77f4e224
Admin can remove all teams' attr
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 13 Apr 2020 20:33:18 +0900 |
parents | d0068e9e6bd7 |
children | 7eb71958a09e |
files | s4-funcs.sh |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-funcs.sh Mon Apr 13 20:24:22 2020 +0900 +++ b/s4-funcs.sh Mon Apr 13 20:33:18 2020 +0900 @@ -2642,8 +2642,12 @@ あらかじめ通知するか、登録解除してよい状況かしっかり確認してください。</p> </div>" # Get team list to which current user belongs into $hexteams - myhexteams=$(hexteams "$grp" "$user") allhexteams=$(hexteams "$grp") + if [ -n "$isowner" ]; then + myhexteams="$allhexteams" # admin can remove all teams' attr + else + myhexteams=$(hexteams "$grp" "$user") + fi if [ -n "$myhexteams" ]; then rmteammsg="`cgi_radio rm rmteam 'id=\"cmrmteam\"'`<label for=\"cmrmteam\">チーム属性除去</label>