mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-24 15:48:55 +01:00
moved private_addressbook attribute from addresbook_ui to addressbook_bo
This commit is contained in:
parent
f94a2a1851
commit
44d59931a2
@ -124,6 +124,12 @@ class addressbook_bo extends addressbook_so
|
||||
* @var boolean
|
||||
*/
|
||||
var $default_private;
|
||||
/**
|
||||
* Use a separate private addressbook (former private flag), for contacts not shareable via regular read acl
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
var $private_addressbook = false;
|
||||
/**
|
||||
* Categories object
|
||||
*
|
||||
@ -176,6 +182,7 @@ class addressbook_bo extends addressbook_so
|
||||
{
|
||||
$this->default_addressbook = $this->user; // admin set a default or forced pref for personal addressbook
|
||||
}
|
||||
$this->private_addressbook = $this->contact_repository == 'sql' && $this->prefs['private_addressbook'];
|
||||
|
||||
$this->contact_fields = array(
|
||||
'id' => lang('Contact ID'),
|
||||
|
@ -29,12 +29,6 @@ class addressbook_ui extends addressbook_bo
|
||||
'admin_set_all_cleanup' => True,
|
||||
'cat_add' => True,
|
||||
);
|
||||
/**
|
||||
* use a separate private addressbook (former private flag), for contacts not shareable via regular read acl
|
||||
*
|
||||
* @var boolean
|
||||
*/
|
||||
protected $private_addressbook = false;
|
||||
protected $org_views;
|
||||
|
||||
/**
|
||||
@ -75,8 +69,6 @@ class addressbook_ui extends addressbook_bo
|
||||
|
||||
$this->tmpl = new etemplate();
|
||||
|
||||
$this->private_addressbook = $this->contact_repository == 'sql' && $this->prefs['private_addressbook'];
|
||||
|
||||
$this->org_views = array(
|
||||
'org_name' => lang('Organisations'),
|
||||
'org_name,adr_one_locality' => lang('Organisations by location'),
|
||||
|
Loading…
Reference in New Issue
Block a user