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 diff
1.1 --- a/s4-funcs.sh Mon Apr 13 20:24:22 2020 +0900 1.2 +++ b/s4-funcs.sh Mon Apr 13 20:33:18 2020 +0900 1.3 @@ -2642,8 +2642,12 @@ 1.4 あらかじめ通知するか、登録解除してよい状況かしっかり確認してください。</p> 1.5 </div>" 1.6 # Get team list to which current user belongs into $hexteams 1.7 - myhexteams=$(hexteams "$grp" "$user") 1.8 allhexteams=$(hexteams "$grp") 1.9 + if [ -n "$isowner" ]; then 1.10 + myhexteams="$allhexteams" # admin can remove all teams' attr 1.11 + else 1.12 + myhexteams=$(hexteams "$grp" "$user") 1.13 + fi 1.14 if [ -n "$myhexteams" ]; then 1.15 rmteammsg="`cgi_radio rm rmteam 'id=\"cmrmteam\"'`<label 1.16 for=\"cmrmteam\">チーム属性除去</label>