diff --git a/plugins/personal/connectivity/class_kolabAccount.inc b/plugins/personal/connectivity/class_kolabAccount.inc
index f0e1b62c16e12150f0be55e0dcff085e151d02ff..9f08ea9110e4bdad8c1c550f80f08d79ec042c9e 100644 (file)
var $plHeadline = "Kolab";
var $plDescription = "This does something";
- /* CLI vars */
- var $cli_summary = "Manage users Kolab account";
- var $cli_description = "Some longer text\nfor help";
- var $cli_parameters = array("eins" => "Eins ist toll", "zwei" => "Zwei ist noch besser");
-
/* Kolab attributes */
var $kolabInvitationPolicy = array();
var $kolabFreeBusyFuture = 60;
$smarty->assign("$val", $this->$val);
$smarty->assign($val."ACL", chkacl($this->acl, "$val"));
}
+ $smarty->assign("kolabAccountACL", chkacl($this->acl, "kolabAccountACL"));
/* Check for invitation action */
$nr= 0;
/* Transfer account states for this union */
if (isset($this->parent) && $this->parent->by_object['mailAccount']->is_account){
$smarty->assign('mail_account', 'true');
- } else {
+ } elseif($this-> initially_was_account && (isset($this->attrs['objectClass']) && (in_array("kolabInetOrgPerson",$this->attrs['objectClass'])))){
+ $smarty->assign('mail_account', 'true');
+ }else{
$smarty->assign('mail_account', '');
}
$this->is_modified= TRUE;
}
+
+ /* Return plugin informations for acl handling */
+ function plInfo()
+ {
+ return (array(
+ "plDescription" => _("Koalb account settings"),
+ "plSelfModify" => TRUE,
+ "plDepends" => array("objectClass" => "gosaAccount"),
+ "kolabFreeBusyFuture" => _("Free busy future"),
+ "unrestrictedMailSize" => _("Mail size restriction"),
+ "calFBURL" => _("Free busy information"),
+ "kolabDelegate" => _("Delegations")));
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: