fix edit permissions
This commit is contained in:
parent
f591526ebc
commit
fb9ccf5d1b
@ -105,7 +105,7 @@ class Item extends BaseObject {
|
|||||||
: false);
|
: false);
|
||||||
$shareable = ((($conv->get_profile_owner() == local_user()) && ($item['private'] != 1)) ? true : 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"));
|
$edpost = array($a->get_baseurl($ssl_state)."/editpost/".$item['id'], t("Edit"));
|
||||||
else
|
else
|
||||||
$edpost = false;
|
$edpost = false;
|
||||||
|
Reference in New Issue
Block a user