From 1562717d19fc35f29799a11aa1d171b70b0b773b Mon Sep 17 00:00:00 2001 From: jengo Date: Tue, 5 Sep 2000 07:12:26 +0000 Subject: [PATCH] Fixed check_owner() and fixed a parse error --- addressbook/edit.php | 2 +- addressbook/index.php | 2 +- addressbook/view.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addressbook/edit.php b/addressbook/edit.php index 693734ff19..9391099ed2 100755 --- a/addressbook/edit.php +++ b/addressbook/edit.php @@ -56,7 +56,7 @@ } else { $bday = $bday_month . "/" . $bday_day . "/" . $bday_year; - $access = $phpgw->groups->array_to_string($access,$n_groups); + $access = $phpgw->accounts->array_to_string($access,$n_groups); $sql = "UPDATE addressbook set email='" . addslashes($email) . "', firstname='" . addslashes($firstname) diff --git a/addressbook/index.php b/addressbook/index.php index 93225290b2..9a79afd8f9 100755 --- a/addressbook/index.php +++ b/addressbook/index.php @@ -156,7 +156,7 @@ - db->f("owner"),$phpgw->db->f("con")); ?> + common->check_owner($phpgw->db->f("owner"),"edit.php",lang_common("edit"),"con=" . $phpgw->db->f("con")); ?> diff --git a/addressbook/view.php b/addressbook/view.php index 2b205be4d7..b003f323c0 100755 --- a/addressbook/view.php +++ b/addressbook/view.php @@ -23,7 +23,7 @@ "/addressbook/?sessionid=" . $phpgw_info["user"]["sessionid"]); if ($filter != "private") - $filtermethod = " or access='public' " . $phpgw->groups->sql_search(); + $filtermethod = " or access='public' " . $phpgw->accounts->sql_search("access"); $phpgw->db->query("SELECT * FROM addressbook WHERE con='$con' AND (owner='" . $phpgw_info["user"]["userid"] . "' $filtermethod)"); @@ -65,7 +65,7 @@ common->check_owner($con,$owner,"Edit"); ?>