From: hickert Date: Wed, 12 Mar 2008 12:48:17 +0000 (+0000) Subject: msgPool X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=406c8f1881e657df67cace796c53e4a3ed4643e5;p=gosa.git msgPool git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9707 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/users/class_divListUsers.inc b/gosa-core/plugins/admin/users/class_divListUsers.inc index 84afb606c..3c462f7eb 100644 --- a/gosa-core/plugins/admin/users/class_divListUsers.inc +++ b/gosa-core/plugins/admin/users/class_divListUsers.inc @@ -339,7 +339,7 @@ class divListUsers extends MultiSelectWindow name='user_chgpw_%KEY%' title='"._("Change password")."'>"; }else{ $action.= " "; + title='"._("Not allowed")."'>"; } /* Add snapshot icon */ @@ -353,7 +353,7 @@ class divListUsers extends MultiSelectWindow name='user_del_%KEY%' title='"._("Delete user")."'>"; }else{ $action.= " "; + title='"._("Not allowed")."'>"; } /* Create phonaccopunt informationm, if conencted && is phoneAccount */ diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index b42abecb2..adcbe468d 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -485,7 +485,7 @@ class userManagement extends plugin unset ($this->usertab); $this->usertab= NULL; } else { - msg_dialog::display(_("User delete"),sprintf(_("You are not allowed to delete the user '%s'!"),$dn),WARNING_DIALOG); + msg_dialog::display(_("User delete"),msgPool::permDelete($dn),WARNING_DIALOG); if(isset($this->ui->uid)){ new log("security","users/".get_class($this),$dn,array(),"Tried to trick deletion."); } @@ -605,7 +605,7 @@ class userManagement extends plugin /* Normally this shouldn't be reached, send some extra logs to notify the administrator */ - msg_dialog::display(_("User delete"),_("You are not allowed to delete this user!"),WARNING_DIALOG); + msg_dialog::display(_("User delete"),msgPool::permDelete(),WARNING_DIALOG); if(isset($this->ui->uid)){ new log("security","users/".get_class($this),$this->dn,array(),"Tried to trick deletion.");