diff --git a/phpBB/admin/admin_groups.php b/phpBB/admin/admin_groups.php
index 6a8ce5380a..2ee6768374 100644
--- a/phpBB/admin/admin_groups.php
+++ b/phpBB/admin/admin_groups.php
@@ -190,6 +190,13 @@ else if( isset($HTTP_POST_VARS['group_update']) )
message_die(GENERAL_ERROR, "Couldn't update user_group", "", __LINE__, __FILE__, $sql);
}
+ $sql = "DELETE FROM " . AUTH_ACCESS_TABLE . "
+ WHERE group_id = " . $group_id;
+ if ( !$result = $db->sql_query($sql) )
+ {
+ message_die(GENERAL_ERROR, "Couldn't update auth_access", "", __LINE__, __FILE__, $sql);
+ }
+
$message = $lang['Deleted_group'] . "
" . sprintf($lang['Click_return_groupsadmin'], "", "") . "
" . sprintf($lang['Click_return_admin_index'], "", "");;
message_die(GENERAL_MESSAGE, $message);