From 41a96e4787dc41830a0edb0a8e7da00b6d203f21 Mon Sep 17 00:00:00 2001
From: redray <redray@ispconfig3>
Date: Sat, 11 Apr 2009 12:14:19 -0400
Subject: [PATCH] added "sys_perm_other" to billing and domain tables. "sys_perm_all" was wrong and is obsolete - sorry.

---
 interface/web/admin/users_edit.php |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/interface/web/admin/users_edit.php b/interface/web/admin/users_edit.php
index b8ccbf2..2bf4dcc 100644
--- a/interface/web/admin/users_edit.php
+++ b/interface/web/admin/users_edit.php
@@ -57,6 +57,14 @@
 			$app->tform->errorMessage .= $app->tform->wordbook['startmodule_err'];
 		}
 	}
+	
+	function onBeforeUpdate() {
+		global $app, $conf;
+		
+		if(@is_array($this->dataRecord['modules']) && !in_array($this->dataRecord['startmodule'],$this->dataRecord['modules'])) {
+			$app->tform->errorMessage .= $app->tform->wordbook['startmodule_err'];
+		}
+	}
 
 }
 

--
Gitblit v1.9.1