move permission check before global block check
This commit is contained in:
parent
c214692f66
commit
08aeeadd71
@ -924,6 +924,10 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) {
|
|||||||
$pdesc = true;
|
$pdesc = true;
|
||||||
$reddress = true;
|
$reddress = true;
|
||||||
|
|
||||||
|
if(! perm_is_allowed($profile['uid'],((is_array($observer)) ? $observer['xchan_hash'] : ''),'view_profile')) {
|
||||||
|
$block = true;
|
||||||
|
}
|
||||||
|
|
||||||
if($block && intval(get_config('system','block_public_blackout')))
|
if($block && intval(get_config('system','block_public_blackout')))
|
||||||
return $o;
|
return $o;
|
||||||
|
|
||||||
@ -1012,9 +1016,6 @@ function profile_sidebar($profile, $block = 0, $show_connect = true) {
|
|||||||
|
|
||||||
// logger('online: ' . $profile['online']);
|
// logger('online: ' . $profile['online']);
|
||||||
|
|
||||||
if(! perm_is_allowed($profile['uid'],((is_array($observer)) ? $observer['xchan_hash'] : ''),'view_profile')) {
|
|
||||||
$block = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
if(($profile['hidewall'] && (! local_channel()) && (! remote_channel())) || $block ) {
|
if(($profile['hidewall'] && (! local_channel()) && (! remote_channel())) || $block ) {
|
||||||
$location = $reddress = $pdesc = $gender = $marital = $homepage = False;
|
$location = $reddress = $pdesc = $gender = $marital = $homepage = False;
|
||||||
|
1289
util/hmessages.po
1289
util/hmessages.po
File diff suppressed because it is too large
Load Diff
@ -1 +1 @@
|
|||||||
2016-01-28.1292H
|
2016-01-29.1293H
|
||||||
|
Reference in New Issue
Block a user