aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-29 18:08:28 -0800
committerfriendica <info@friendica.com>2013-01-29 18:08:28 -0800
commitfb9ccf5d1b39fc060c5752d28f89daf2378610d3 (patch)
tree52c565e60b4aade0e19bad2f6210ee7364110ccd /include
parentf591526ebc9ab3a98f1e58c8e1873e76e72b0a1f (diff)
downloadvolse-hubzilla-fb9ccf5d1b39fc060c5752d28f89daf2378610d3.tar.gz
volse-hubzilla-fb9ccf5d1b39fc060c5752d28f89daf2378610d3.tar.bz2
volse-hubzilla-fb9ccf5d1b39fc060c5752d28f89daf2378610d3.zip
fix edit permissions
Diffstat (limited to 'include')
-rw-r--r--include/ItemObject.php2
1 files changed, 1 insertions, 1 deletions
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;