mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 02:19:39 +01:00
merge from trunk(revision 23745:23749) to 1.4 branch
This commit is contained in:
parent
1ca33e7d7b
commit
e86e5a9cd1
@ -212,7 +212,7 @@ class contacts_admin_prefs
|
|||||||
'type' => 'check',
|
'type' => 'check',
|
||||||
'label' => 'Hide accounts from addressbook',
|
'label' => 'Hide accounts from addressbook',
|
||||||
'name' => 'hide_accounts',
|
'name' => 'hide_accounts',
|
||||||
'help' => 'Hides accounts completly from the adressbook for non administrators!',
|
'help' => 'Hides accounts completly from the adressbook.',
|
||||||
'xmlrpc' => True,
|
'xmlrpc' => True,
|
||||||
'admin' => false,
|
'admin' => false,
|
||||||
);
|
);
|
||||||
|
@ -236,8 +236,7 @@ class socontacts
|
|||||||
// add grants for accounts: if account_selection not in ('none','groupmembers'): everyone has read access,
|
// add grants for accounts: if account_selection not in ('none','groupmembers'): everyone has read access,
|
||||||
// if he has not set the hide_accounts preference
|
// if he has not set the hide_accounts preference
|
||||||
// ToDo: be more specific for 'groupmembers', they should be able to see the groupmembers
|
// 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')) &&
|
if (!in_array($GLOBALS['egw_info']['user']['preferences']['common']['account_selection'],array('none','groupmembers')))
|
||||||
!$GLOBALS['egw_info']['user']['preferences']['addressbook']['hide_accounts'])
|
|
||||||
{
|
{
|
||||||
$this->grants[0] = EGW_ACL_READ;
|
$this->grants[0] = EGW_ACL_READ;
|
||||||
}
|
}
|
||||||
|
@ -700,6 +700,10 @@ class uicontacts extends bocontacts
|
|||||||
{
|
{
|
||||||
unset($query['col_filter']['list']);
|
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
|
if (isset($this->org_views[(string) $query['org_view']])) // we have an org view
|
||||||
{
|
{
|
||||||
unset($query['col_filter']['list']); // does not work together
|
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));
|
$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');
|
$addressbooks[0] = lang('Accounts');
|
||||||
}
|
}
|
||||||
|
@ -156,7 +156,7 @@ global categories addressbook de Globale Kategorien
|
|||||||
grant addressbook access common de Berechtigungen
|
grant addressbook access common de Berechtigungen
|
||||||
group %1 addressbook de Gruppe %1
|
group %1 addressbook de Gruppe %1
|
||||||
hide accounts from addressbook addressbook de Benutzer im Adressbuch ausblenden
|
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 addressbook de Privatadresse
|
||||||
home address, birthday, ... addressbook de Privatadresse, Geburtstag, ...
|
home address, birthday, ... addressbook de Privatadresse, Geburtstag, ...
|
||||||
home city addressbook de Stadt privat
|
home city addressbook de Stadt privat
|
||||||
|
@ -156,7 +156,7 @@ global categories addressbook en Global Categories
|
|||||||
grant addressbook access common en Grant Addressbook Access
|
grant addressbook access common en Grant Addressbook Access
|
||||||
group %1 addressbook en Group %1
|
group %1 addressbook en Group %1
|
||||||
hide accounts from addressbook addressbook en Hide accounts from addressbook
|
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 addressbook en Home address
|
||||||
home address, birthday, ... addressbook en Home address, Birthday, ...
|
home address, birthday, ... addressbook en Home address, Birthday, ...
|
||||||
home city addressbook en Home City
|
home city addressbook en Home City
|
||||||
|
@ -610,12 +610,11 @@
|
|||||||
$_mailObject->PluginDir = EGW_SERVER_ROOT."/phpgwapi/inc/";
|
$_mailObject->PluginDir = EGW_SERVER_ROOT."/phpgwapi/inc/";
|
||||||
|
|
||||||
$_mailObject->IsSMTP();
|
$_mailObject->IsSMTP();
|
||||||
|
$_mailObject->CharSet = $this->displayCharset;
|
||||||
$_mailObject->From = $_identity->emailAddress;
|
$_mailObject->From = $_identity->emailAddress;
|
||||||
#$_mailObject->FromName = $bofelamimail->encodeHeader($_identity->realName,'q');
|
|
||||||
$_mailObject->FromName = $_mailObject->EncodeHeader($_identity->realName);
|
$_mailObject->FromName = $_mailObject->EncodeHeader($_identity->realName);
|
||||||
$_mailObject->Priority = $_formData['priority'];
|
$_mailObject->Priority = $_formData['priority'];
|
||||||
$_mailObject->Encoding = 'quoted-printable';
|
$_mailObject->Encoding = 'quoted-printable';
|
||||||
$_mailObject->CharSet = $this->displayCharset;
|
|
||||||
$_mailObject->AddCustomHeader('X-Mailer: FeLaMiMail');
|
$_mailObject->AddCustomHeader('X-Mailer: FeLaMiMail');
|
||||||
if(isset($this->sessionData['in-reply-to'])) {
|
if(isset($this->sessionData['in-reply-to'])) {
|
||||||
$_mailObject->AddCustomHeader('In-Reply-To: '. $this->sessionData['in-reply-to']);
|
$_mailObject->AddCustomHeader('In-Reply-To: '. $this->sessionData['in-reply-to']);
|
||||||
|
Loading…
Reference in New Issue
Block a user