mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
Fixed check_owner() and fixed a parse error
This commit is contained in:
parent
4f689d3035
commit
1562717d19
@ -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)
|
||||
|
@ -156,7 +156,7 @@
|
||||
</td>
|
||||
<td valign=top width=5%>
|
||||
<font face=Arial, Helvetica, sans-serif size=2>
|
||||
<?php echo check_owner($phpgw->db->f("owner"),$phpgw->db->f("con")); ?>
|
||||
<?php echo $phpgw->common->check_owner($phpgw->db->f("owner"),"edit.php",lang_common("edit"),"con=" . $phpgw->db->f("con")); ?>
|
||||
</font>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -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 @@
|
||||
<TR>
|
||||
<TD align=left>
|
||||
<?php
|
||||
echo check_owner($owner,$con);
|
||||
echo $phpgw->common->check_owner($con,$owner,"Edit");
|
||||
?>
|
||||
</TD>
|
||||
<TD align=left>
|
||||
|
Loading…
Reference in New Issue
Block a user