From 9d086e58a105956e3de2159c0fad59e99ae0b74f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Mon, 3 Jun 2013 00:06:44 +0200 Subject: [PATCH] Added default permissions for moderators --- wcfsetup/install/files/acp/post_install.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/wcfsetup/install/files/acp/post_install.php b/wcfsetup/install/files/acp/post_install.php index 442713fdd2..8dfbfb1572 100644 --- a/wcfsetup/install/files/acp/post_install.php +++ b/wcfsetup/install/files/acp/post_install.php @@ -24,3 +24,19 @@ $action = new UserProfileAction(array($editor), 'updateUserRank'); $action->executeAction(); $action = new UserProfileAction(array($editor), 'updateUserOnlineMarking'); $action->executeAction(); + +// set default mod permissions +$sql = "INSERT IGNORE INTO wcf".WCF_N."_user_group_option_value + (groupID, optionID, optionValue) + SELECT 5, optionID, 1 + FROM wcf".WCF_N."_user_group_option + WHERE optionName LIKE 'mod.%'"; +$statement = WCF::getDB()->prepareStatement($sql); +$statement->execute(); +$sql = "INSERT IGNORE INTO wcf".WCF_N."_user_group_option_value + (groupID, optionID, optionValue) + SELECT 6, optionID, 1 + FROM wcf".WCF_N."_user_group_option + WHERE optionName LIKE 'mod.%'"; +$statement = WCF::getDB()->prepareStatement($sql); +$statement->execute(); -- 2.20.1