mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-25 15:29:17 +01:00
Make 'Edit' a button and based upon ACL
This commit is contained in:
parent
b3f391d33f
commit
372492ac8e
@ -11,8 +11,10 @@
|
|||||||
<TR>
|
<TR>
|
||||||
<TD align="left">
|
<TD align="left">
|
||||||
{edit_link}
|
{edit_link}
|
||||||
|
<input type="submit" name="edit" value="{lang_edit}">
|
||||||
|
</form>
|
||||||
</TD>
|
</TD>
|
||||||
<TD align=left>
|
<TD align="left">
|
||||||
{copy_link}
|
{copy_link}
|
||||||
<input type="hidden" name="sort" value="{sort}">
|
<input type="hidden" name="sort" value="{sort}">
|
||||||
<input type="hidden" name="order" value="{order}">
|
<input type="hidden" name="order" value="{order}">
|
||||||
@ -22,7 +24,7 @@
|
|||||||
<input type="submit" name="submit" value="{lang_copy}">
|
<input type="submit" name="submit" value="{lang_copy}">
|
||||||
</form>
|
</form>
|
||||||
</TD>
|
</TD>
|
||||||
<TD align=left>
|
<TD align="left">
|
||||||
{vcard_link}
|
{vcard_link}
|
||||||
<input type="hidden" name="ab_id" value="{ab_id}">
|
<input type="hidden" name="ab_id" value="{ab_id}">
|
||||||
<input type="hidden" name="sort" value="{sort}">
|
<input type="hidden" name="sort" value="{sort}">
|
||||||
|
@ -99,7 +99,14 @@
|
|||||||
. $access_link . '</b></td><td></table>';
|
. $access_link . '</b></td><td></table>';
|
||||||
|
|
||||||
$sfields = rawurlencode(serialize($fields[0]));
|
$sfields = rawurlencode(serialize($fields[0]));
|
||||||
$editlink = $phpgw->common->check_owner($record_owner,"/addressbook/edit.php",lang("edit"),"ab_id=" . $ab_id . "&start=".$start."&sort=".$sort."&order=".$order);
|
|
||||||
|
if ($rights & PHPGW_ACL_EDIT) {
|
||||||
|
$editlink = '<form method="POST" action="'.$phpgw->link("/addressbook/edit.php","ab_id=$ab_id&start=$start&sort=$sort&order=$order"
|
||||||
|
. "&query=$query&sort=$sort").'">';
|
||||||
|
} else {
|
||||||
|
$editlink = '';
|
||||||
|
}
|
||||||
|
|
||||||
$copylink = '<form method="POST" action="'.$phpgw->link("/addressbook/add.php","order=$order&start=$start&filter=$filter&query=$query&sort=$sort").'">';
|
$copylink = '<form method="POST" action="'.$phpgw->link("/addressbook/add.php","order=$order&start=$start&filter=$filter&query=$query&sort=$sort").'">';
|
||||||
$vcardlink = '<form method="POST" action="'.$phpgw->link("/addressbook/vcardout.php","ab_id=$ab_id&order=$order&start=$start&filter=$filter&query=$query&sort=$sort").'">';
|
$vcardlink = '<form method="POST" action="'.$phpgw->link("/addressbook/vcardout.php","ab_id=$ab_id&order=$order&start=$start&filter=$filter&query=$query&sort=$sort").'">';
|
||||||
$donelink = '<form method="POST" action="'.$phpgw->link("/addressbook/index.php","order=$order&start=$start&filter=$filter&query=$query&sort=$sort").'">';
|
$donelink = '<form method="POST" action="'.$phpgw->link("/addressbook/index.php","order=$order&start=$start&filter=$filter&query=$query&sort=$sort").'">';
|
||||||
|
Loading…
Reference in New Issue
Block a user