From fb9ccf5d1b39fc060c5752d28f89daf2378610d3 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 29 Jan 2013 18:08:28 -0800 Subject: fix edit permissions --- include/ItemObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/ItemObject.php b/include/ItemObject.php index 047f8ff0b..c4f1093c6 100644 --- a/include/ItemObject.php +++ b/include/ItemObject.php @@ -105,7 +105,7 @@ class Item extends BaseObject { : false); $shareable = ((($conv->get_profile_owner() == local_user()) && ($item['private'] != 1)) ? true : false); - if(local_user() && link_compare($a->contact['url'],$item['author-link'])) + if(local_user() && $observer['xchan_hash'] === $item['author_xchan']) $edpost = array($a->get_baseurl($ssl_state)."/editpost/".$item['id'], t("Edit")); else $edpost = false; -- cgit v1.2.3