<instruction type="style">defaultStyle.tar</instruction>
<instruction type="script">acp/update_com.woltlab.wcf_3.0_post_sql.php</instruction>
+ <instruction type="script">acp/update_com.woltlab.wcf_preventMailAbuse.php</instruction>
</instructions>
<instructions type="update" fromversion="2.1.24 pl 1">
<instruction type="file">files_pre_update.tar</instruction>
<instruction type="style">defaultStyle.tar</instruction>
<instruction type="script">acp/update_com.woltlab.wcf_3.0_post_sql.php</instruction>
+ <instruction type="script">acp/update_com.woltlab.wcf_preventMailAbuse.php</instruction>
</instructions>
<instructions type="update" fromversion="2.1.24 pl 2">
<instruction type="file">files_pre_update.tar</instruction>
<instruction type="style">defaultStyle.tar</instruction>
<instruction type="script">acp/update_com.woltlab.wcf_3.0_post_sql.php</instruction>
+ <instruction type="script">acp/update_com.woltlab.wcf_preventMailAbuse.php</instruction>
</instructions>
+ <!-- Include: <instruction type="script">acp/update_com.woltlab.wcf_preventMailAbuse.php</instruction> -->
+
<instructions type="update" fromversion="3.0.22">
<instruction type="acpTemplate">acptemplates_update.tar</instruction>
<instruction type="file">files_update.tar</instruction>
--- /dev/null
+<?php
+namespace wcf\acp;
+use wcf\system\WCF;
+
+$sql = "UPDATE wcf".WCF_N."_user_group_option_value
+ SET optionValue = ?
+ WHERE optionID = (
+ SELECT optionID
+ FROM wcf".WCF_N."_user_group_option
+ WHERE optionName = ?
+ )";
+$statement = WCF::getDB()->prepareStatement($sql);
+$statement->execute([
+ 0,
+ 'user.profile.canMail',
+]);