X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-plugins%2Fgoto%2Fadmin%2Fsystems%2Fservices%2Fshares%2Fclass_goShareServer.inc;h=23f527b527b4b1608fe5e8344eaad83be7f2d36d;hb=f2811bc5fa0fe0afb9c18224e2bd40e6c9fccd7a;hp=7914d49186ea65917811693164d585da6e7d7b7f;hpb=95445b9da7e81ace50e39873b905646bb16d69f7;p=gosa.git
diff --git a/gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc b/gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc
index 7914d4918..23f527b52 100644
--- a/gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc
+++ b/gosa-plugins/goto/admin/systems/services/shares/class_goShareServer.inc
@@ -95,7 +95,7 @@ class goShareServer extends goService{
if(isset($_POST['NFSsave']) && isset($this->o_subWindow) && is_object($this->o_subWindow)){
if(count($this->o_subWindow->check())>0){
foreach($this->o_subWindow->check() as $msg) {
- print_red($msg);
+ msg_dialog::display(_("Error"), $msg, ERROR_DIALOG);
}
}else{
$this->o_subWindow->save_object();
@@ -155,7 +155,7 @@ class goShareServer extends goService{
{
$fields = goService::getListEntry();
$fields['Message'] = _("File service (Shares)");
- $fields['AllowEdit'] = true;
+ #$fields['AllowEdit'] = true;
return($fields);
}
@@ -226,15 +226,11 @@ class goShareServer extends goService{
$ldap = $this->config->get_ldap_link();
$ldap->cd($this->config->current['BASE']);
$ldap->search("(|(gotoProfileServer=*|$id)(gotoShare=*|$id|*||*))", array("cn"));
- $cnt= $ldap->count();
- if ($cnt){
- $msg= sprintf(_("The share can't be removed since it is still used by %d users:"), $cnt);
- $msg.= "