diff --git a/addressbook/acl_preferences.php b/addressbook/acl_preferences.php index 679477fe36..72bb7bb353 100755 --- a/addressbook/acl_preferences.php +++ b/addressbook/acl_preferences.php @@ -85,6 +85,7 @@ } $acl->add($phpgw_info["flags"]["currentapp"],'u_'.$user_id,$totalacl); } + $acl->save_repository(); } $processed = Array(); diff --git a/addressbook/add.php b/addressbook/add.php index b04a59e39d..a615a14c26 100755 --- a/addressbook/add.php +++ b/addressbook/add.php @@ -41,9 +41,7 @@ } else { $bday = "$bday_month/$bday_day/$bday_year"; } - if ($access != "private" && $access != "public") { - $access = $phpgw->accounts->array_to_string($access,$n_groups); - } + if ($url == "http://") { $url = ""; } @@ -78,7 +76,6 @@ $fields["bday"] = $bday; $fields["url"] = $url; $fields["notes"] = $notes; - $fields["access"] = $access; $this->add($phpgw_info["user"]["account_id"],$fields); diff --git a/addressbook/edit.php b/addressbook/edit.php index 74d2ab8a15..c0fa59dfc4 100755 --- a/addressbook/edit.php +++ b/addressbook/edit.php @@ -33,14 +33,15 @@ if (!$submit) { // merge in extra fields - $extrafields = array ("pager" => "pager", - "mphone" => "mphone", - "ophone" => "ophone", - "access" => "access", - "address2" => "address2", - "bday" => "bday", - "url" => "url", - "notes" => "notes"); + $extrafields = array( + "pager" => "pager", + "mphone" => "mphone", + "ophone" => "ophone", + "address2" => "address2", + "bday" => "bday", + "url" => "url", + "notes" => "notes" + ); $qfields = $this->stock_contact_fields + $extrafields; $fields = $this->read_single_entry($ab_id,$qfields); form("","edit.php","Edit",$fields[0]); @@ -53,9 +54,6 @@ } else { $bday = "$bday_month/$bday_day/$bday_year"; } - if ($access != "private" && $access != "public") { - $access = $phpgw->accounts->array_to_string($access,$n_groups); - } $fields["org_name"] = $company; $fields["org_unit"] = $department; @@ -87,7 +85,6 @@ $fields["bday"] = $bday; $fields["url"] = $url; $fields["notes"] = $notes; - $fields["access"] = $access; $this->update($ab_id,$phpgw_info["user"]["account_id"],$fields); diff --git a/addressbook/inc/functions.inc.php b/addressbook/inc/functions.inc.php index e5410a4c93..6cd2493595 100755 --- a/addressbook/inc/functions.inc.php +++ b/addressbook/inc/functions.inc.php @@ -61,7 +61,7 @@ "d_email_home" => "", //yn "bday" => "birthday", "url" => "URL", - "access" => "access" + //"access" => "access" ); function display_name($column) { @@ -104,7 +104,7 @@ $company = $fields["org_name"]; $department = $fields["org_unit"]; $url = $fields["url"]; - $access = $fields["access"]; + //$access = $fields["access"]; if ($format != "view") { $email = ""; @@ -239,7 +239,8 @@ $birthday = $phpgw->common->dateformatorder($bday_year,$bday_month,$bday_day) . '(e.g. 1969)'; - +/* + // This is now handled by acl code, and should go away if ($format == "Edit") { if ($access != "private" && $access != "public") { $access_link .= '
" . lang("Address book - view") . "
"; $view_header .= '
" . $ref . $data . " | "; } +/* if ($access == "private") { $access_link .= lang("Record Access") . " - " . $access; } elseif ($access != "private" && $access != "public") { @@ -86,12 +86,12 @@ } else { $access_link =""; } - +*/ $columns_html .= '||||
' . lang("Record owner") . ' | ' - . $phpgw->common->grab_owner_name($owner) . ' | ' + . $phpgw->common->grab_owner_name($owner) . ' | ' . $access_link . ' |