Last modified by Super Admin on 2026/04/05 18:59

From version Icon 45.1 Icon
edited by Super Admin
on 2026/03/13 02:03
Change comment: There is no comment for this version
To version Icon 44.1 Icon
edited by Super Admin
on 2026/03/13 00:18
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -102,12 +102,8 @@
102 102  
103 103  ## --- 投稿固定/解除処理 ---
104 104  #set($pinAction = $!request.action)
105 -#if(($pinAction == 'pin' || $pinAction == 'unpin') && ($viewerAccountType == 'admin' || ($viewerAccountType == 'verified' && $viewerSchoolCode == $schoolCode)) && $services.csrf.isTokenValid($request.form_token))
106 - #set($pinPostObjStr = $!request.postObj)
107 - #if(!$pinPostObjStr.matches('^\d+$'))
108 - ## 不正な値 → 無視
109 - #else
110 - #set($postObjNum = $mathtool.toInteger($pinPostObjStr))
105 +#if(($pinAction == 'pin' || $pinAction == 'unpin') && ($viewerAccountType == 'admin' || $viewerAccountType == 'verified') && $services.csrf.isTokenValid($request.form_token))
106 + #set($postObjNum = $mathtool.toInteger($!request.postObj))
111 111   #set($postObj = $doc.getObject('SeitokaiCode.ActivityPostClass', $postObjNum))
112 112   #if($postObj)
113 113   #if($pinAction == 'pin')
... ... @@ -127,15 +127,12 @@
127 127   $response.sendRedirect($doc.getURL('view'))
128 128   #stop
129 129   #end
130 - #end## /matches
131 131  #end
132 132  
133 133  ## --- 特色ある活動 選定/解除処理 ---
134 134  #set($featAction = $!request.action)
135 -#if(($featAction == 'feature' || $featAction == 'unfeature') && ($viewerAccountType == 'admin' || (($viewerAccountType == 'verified' || $viewerAccountType == 'referred') && $viewerSchoolCode == $schoolCode)) && $services.csrf.isTokenValid($request.form_token))
136 - #set($featActObjStr = $!request.actObj)
137 - #if($featActObjStr.matches('^\d+$'))
138 - #set($actObjNum = $mathtool.toInteger($featActObjStr))
130 +#if(($featAction == 'feature' || $featAction == 'unfeature') && ($viewerAccountType == 'admin' || $viewerAccountType == 'verified' || $viewerAccountType == 'referred') && $services.csrf.isTokenValid($request.form_token))
131 + #set($actObjNum = $mathtool.toInteger($!request.actObj))
139 139   #set($actObj = $doc.getObject('SeitokaiCode.ActivityClass', $actObjNum))
140 140   #if($actObj)
141 141   #if($featAction == 'feature')
... ... @@ -167,7 +167,6 @@
167 167   $response.sendRedirect($doc.getURL('view'))
168 168   #stop
169 169   #end
170 - #end## /matches
171 171  #end
172 172  
173 173  ## --- ユーザー情報取得 ---