From d4d985e00f1f70dd390bd5aaf40062416d73f4e7 Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Mon, 17 Nov 2008 12:02:44 -0500
Subject: [PATCH] Data records are now assigned to the correct client group if they were created by the administrator.

---
 interface/web/tools/user_settings.php |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/interface/web/tools/user_settings.php b/interface/web/tools/user_settings.php
index d618ef0..9d75347 100644
--- a/interface/web/tools/user_settings.php
+++ b/interface/web/tools/user_settings.php
@@ -64,6 +64,7 @@
 				
 				// Importing ID
                 $this->id = $_SESSION['s']['user']['userid'];
+				$_POST['id'] = $_SESSION['s']['user']['userid'];
 
                 if(count($_POST) > 1) {
                         $this->dataRecord = $_POST;
@@ -72,6 +73,10 @@
                         $this->onShow();
                 }
         }
+	
+	function onInsert() {
+		die('No inserts allowed.');
+	}
 		
 	function onBeforeUpdate() {
 		global $app, $conf;

--
Gitblit v1.9.1