From dd0fc9255b9c19ed6c8914bc718c59bf508cbe3c Mon Sep 17 00:00:00 2001
From: tbrehm <t.brehm@ispconfig.org>
Date: Wed, 23 Nov 2005 04:36:44 -0500
Subject: [PATCH] Added Domain Alias in email Module.

---
 interface/lib/classes/listform_actions.inc.php |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php
index 4b13692..0df5391 100644
--- a/interface/lib/classes/listform_actions.inc.php
+++ b/interface/lib/classes/listform_actions.inc.php
@@ -40,6 +40,7 @@
 	var $id;
 	var $idx_key;
 	var $DataRowColor;
+	var $SQLExtWhere = '';
 	
 	function onLoad() {
 		global $app, $conf, $list_def_file;
@@ -98,9 +99,9 @@
 		// Generate the search sql
 		if($app->listform->listDef["auth"] != 'no') {
 			if($_SESSION["s"]["user"]["typ"] == "admin") {
-				$sql_where = "";
+				$sql_where = $this->SQLExtWhere;
 			} else {
-				$sql_where = $app->tform->getAuthSQL('r')." and";
+				$sql_where = $this->SQLExtWhere ." ". $app->tform->getAuthSQL('r')." and";
 			}
 		}
 

--
Gitblit v1.9.1