merge from trunk(revision 23745:23749) to 1.4 branch

This commit is contained in:
Lars Kneschke 2007-04-30 19:49:43 +00:00
parent 1ca33e7d7b
commit e86e5a9cd1
6 changed files with 10 additions and 8 deletions

View File

@ -212,7 +212,7 @@ class contacts_admin_prefs
'type' => 'check',
'label' => 'Hide accounts from addressbook',
'name' => 'hide_accounts',
'help' => 'Hides accounts completly from the adressbook for non administrators!',
'help' => 'Hides accounts completly from the adressbook.',
'xmlrpc' => True,
'admin' => false,
);

View File

@ -236,8 +236,7 @@ class socontacts
// add grants for accounts: if account_selection not in ('none','groupmembers'): everyone has read access,
// if he has not set the hide_accounts preference
// ToDo: be more specific for 'groupmembers', they should be able to see the groupmembers
if (!in_array($GLOBALS['egw_info']['user']['preferences']['common']['account_selection'],array('none','groupmembers')) &&
!$GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts'])
if (!in_array($GLOBALS['egw_info']['user']['preferences']['common']['account_selection'],array('none','groupmembers')))
{
$this->grants[0] = EGW_ACL_READ;
}

View File

@ -700,6 +700,10 @@ class uicontacts extends bocontacts
{
unset($query['col_filter']['list']);
}
if ($GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts'])
{
$query['col_filter']['account_id'] = null;
}
if (isset($this->org_views[(string) $query['org_view']])) // we have an org view
{
unset($query['col_filter']['list']); // does not work together
@ -992,7 +996,7 @@ class uicontacts extends bocontacts
$addressbooks[$uid] = lang('Group %1',$GLOBALS['egw']->accounts->id2name($uid));
}
}
if ($this->grants[0] & $required)
if (($this->grants[0] & $required) && !$GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts'])
{
$addressbooks[0] = lang('Accounts');
}

View File

@ -156,7 +156,7 @@ global categories addressbook de Globale Kategorien
grant addressbook access common de Berechtigungen
group %1 addressbook de Gruppe %1
hide accounts from addressbook addressbook de Benutzer im Adressbuch ausblenden
hides accounts completly from the adressbook for non administrators! addressbook de Entfernt die Benutzer komplett aus dem Adressbuch für nicht Administratoren!
hides accounts completly from the adressbook. addressbook de Entfernt die Benutzer komplett aus dem Adressbuch.
home address addressbook de Privatadresse
home address, birthday, ... addressbook de Privatadresse, Geburtstag, ...
home city addressbook de Stadt privat

View File

@ -156,7 +156,7 @@ global categories addressbook en Global Categories
grant addressbook access common en Grant Addressbook Access
group %1 addressbook en Group %1
hide accounts from addressbook addressbook en Hide accounts from addressbook
hides accounts completly from the adressbook for non administrators! addressbook en Hides accounts completly from the adressbook for non administrators!
hides accounts completly from the adressbook. addressbook en Hides accounts completly from the adressbook.
home address addressbook en Home address
home address, birthday, ... addressbook en Home address, Birthday, ...
home city addressbook en Home City

View File

@ -610,12 +610,11 @@
$_mailObject->PluginDir = EGW_SERVER_ROOT."/phpgwapi/inc/";
$_mailObject->IsSMTP();
$_mailObject->CharSet = $this->displayCharset;
$_mailObject->From = $_identity->emailAddress;
#$_mailObject->FromName = $bofelamimail->encodeHeader($_identity->realName,'q');
$_mailObject->FromName = $_mailObject->EncodeHeader($_identity->realName);
$_mailObject->Priority = $_formData['priority'];
$_mailObject->Encoding = 'quoted-printable';
$_mailObject->CharSet = $this->displayCharset;
$_mailObject->AddCustomHeader('X-Mailer: FeLaMiMail');
if(isset($this->sessionData['in-reply-to'])) {
$_mailObject->AddCustomHeader('In-Reply-To: '. $this->sessionData['in-reply-to']);