summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 345d14a)
raw | patch | inline | side by side (parent: 345d14a)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 9 Jan 2007 04:45:54 +0000 (04:45 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 9 Jan 2007 04:45:54 +0000 (04:45 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5485 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/gofon/macro/class_gofonMacro.inc | patch | blob | history |
index 6f464c9d2bc466a9ee5e20e5a7aebe3a1cd6b520..93c0859ad8ead7d657c24a62727824945778cf1c 100755 (executable)
}
}
+ /* If this macro is still in use we should not change the visible for user flag to invisible */
+ if(!$this->goFonMacroVisible){
+ $ldap = $this->config->get_ldap_link();
+ $res = $ldap->search("(&(objectClass=goFonAccount)(objectClass=gosaAccount)(goFonMacro=*))", array("goFonMacro"));
+ while ($val = $ldap->fetch()){
+ if(strstr($val['goFonMacro'][0],$this->dn)){
+ $message[] = _("This macro is still in use. It is necessary to mark this macro as visible for users.");
+ return($message);
+ }
+ }
+ }
+
/* Macro content must be smaller than 100 lines */
if(count(split("\n",$this->goFonMacroContent))>100){
$message[] = _("Makro length must be lower than 100 lines");