diff options
author | friendica <info@friendica.com> | 2013-09-20 19:14:57 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-20 19:14:57 -0700 |
commit | 43e290f4c05e9b558abd8118f2282898f3d488f8 (patch) | |
tree | 90c0cfa7d6c0661c9cc8ab3a1ac0860f54ab626d /include/items.php | |
parent | 15ae108832aa94fdc098703de183bbf61baba58a (diff) | |
download | volse-hubzilla-43e290f4c05e9b558abd8118f2282898f3d488f8.tar.gz volse-hubzilla-43e290f4c05e9b558abd8118f2282898f3d488f8.tar.bz2 volse-hubzilla-43e290f4c05e9b558abd8118f2282898f3d488f8.zip |
fix contact comment permissions
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php index 4e8a5c46f..37ff7db3c 100755 --- a/include/items.php +++ b/include/items.php @@ -80,8 +80,13 @@ function can_comment_on_post($observer_xchan,$item) { break; case 'contacts': 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; + } break; default: break; |