fix contact comment permissions
This commit is contained in:
parent
15ae108832
commit
43e290f4c0
@ -80,8 +80,13 @@ function can_comment_on_post($observer_xchan,$item) {
|
|||||||
break;
|
break;
|
||||||
case 'contacts':
|
case 'contacts':
|
||||||
case '':
|
case '':
|
||||||
if(($item['owner']['abook_xchan']) && ($item['owner']['abook_their_perms'] & PERMS_W_COMMENT))
|
if(array_key_exists('owner',$item)) {
|
||||||
|
if(($item['owner']['abook_xchan']) && ($item['owner']['abook_their_perms'] & PERMS_W_COMMENT))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else {
|
||||||
return true;
|
return true;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user