public function installStep7()
{
$db = $this->db();
$applyGroupId = 'fox_social';
$applyPermissionIds = [
'canAddProfile',
'canSendMessage',
'showLatestPosts'
];
foreach ($applyPermissionIds as $applyPermissionId) {
$db->query("
REPLACE INTO xf_permission_entry
(user_group_id, user_id, permission_group_id, permission_id, permission_value, permission_value_int)
SELECT 2, user_id, ?, ?, 'allow', 0
FROM xf_permission_entry
WHERE user_group_id = 2
", [$applyGroupId, $applyPermissionId]);
}
}