4 * @author Matthias Schmidt
5 * @copyright 2001-2019 WoltLab GmbH
6 * @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
9 use wcf\data\user\group\UserGroup
;
12 // set default mod permissions
13 $group = new UserGroup(5);
14 if ($group->groupID
) {
15 $sql = "REPLACE INTO wcf" . WCF_N
. "_user_group_option_value
16 (groupID, optionID, optionValue)
18 FROM wcf" . WCF_N
. "_user_group_option
19 WHERE optionName LIKE 'mod.conversation.%'";
20 $statement = WCF
::getDB()->prepareStatement($sql);
21 $statement->execute();
24 $group = new UserGroup(6);
25 if ($group->groupID
) {
26 $sql = "REPLACE INTO wcf" . WCF_N
. "_user_group_option_value
27 (groupID, optionID, optionValue)
29 FROM wcf" . WCF_N
. "_user_group_option
30 WHERE optionName LIKE 'mod.conversation.%'";
31 $statement = WCF
::getDB()->prepareStatement($sql);
32 $statement->execute();