Merge pull request #382 from git-marijus/master

provide some info to not local users
This commit is contained in:
RedMatrix 2014-03-29 07:31:28 +11:00
commit 96525126f6

View file

@ -26,8 +26,10 @@ function lockview_content(&$a) {
$item = $r[0]; $item = $r[0];
if($item['uid'] != local_user()) if($item['uid'] != local_user()) {
echo '<li>' . t('Remote privacy information not available.') . '</li>';
killme(); killme();
}
if(($item['item_private'] == 1) && (! strlen($item['allow_cid'])) && (! strlen($item['allow_gid'])) if(($item['item_private'] == 1) && (! strlen($item['allow_cid'])) && (! strlen($item['allow_gid']))
&& (! strlen($item['deny_cid'])) && (! strlen($item['deny_gid']))) { && (! strlen($item['deny_cid'])) && (! strlen($item['deny_gid']))) {