forked from extern/egroupware
Added grants var and setting
This commit is contained in:
parent
dd53c1a225
commit
3806a09744
@ -41,9 +41,10 @@
|
|||||||
var $ext_table="phpgw_addressbook_extra";
|
var $ext_table="phpgw_addressbook_extra";
|
||||||
|
|
||||||
var $account_id;
|
var $account_id;
|
||||||
var $stock_contact_fields; // This is an array of almost the fields in the phpgw_addressbook table, except id,owner,lid,tid
|
var $stock_contact_fields; // This is an array of almost the fields in the phpgw_addressbook table, except id,owner,access,lid,tid
|
||||||
var $email_types; // VCard email type array
|
var $email_types; // VCard email type array
|
||||||
var $total_records; // This will contain numrows for data retrieved
|
var $total_records; // This will contain numrows for data retrieved
|
||||||
|
var $grants; // This holds all of the users that have granted access to there entrys
|
||||||
|
|
||||||
function contacts_()
|
function contacts_()
|
||||||
{
|
{
|
||||||
@ -56,14 +57,10 @@
|
|||||||
$phpgw_info['server']['ldap_contact_pw']
|
$phpgw_info['server']['ldap_contact_pw']
|
||||||
);
|
);
|
||||||
$this->account_id = $phpgw_info["user"]["account_id"];
|
$this->account_id = $phpgw_info["user"]["account_id"];
|
||||||
|
$this->grants = $phpgw->acl->get_grants('addressbook');
|
||||||
|
|
||||||
// The left side are the array elements used throughout phpgw, right side are the ldap attributes
|
// The left side are the array elements used throughout phpgw, right side are the ldap attributes
|
||||||
$this->stock_contact_fields = array(
|
$this->stock_contact_fields = array(
|
||||||
// "id" => "uidnumber",
|
|
||||||
// "lid" => "uid",
|
|
||||||
// "tid" => "phpgwcontacttype",
|
|
||||||
// "owner" => "phpgwowner",
|
|
||||||
// "access" => "phpgwaccess",
|
|
||||||
"fn" => "cn", // 'prefix given middle family suffix'
|
"fn" => "cn", // 'prefix given middle family suffix'
|
||||||
"n_given" => "givenname", // firstname
|
"n_given" => "givenname", // firstname
|
||||||
"n_family" => "sn", // lastname
|
"n_family" => "sn", // lastname
|
||||||
|
Loading…
Reference in New Issue
Block a user