rewrite of function profile_load with Mike

This commit is contained in:
Michael Meer 2013-01-14 14:33:30 +01:00
parent 1dd188a29e
commit eac452f505

View File

@ -1254,7 +1254,7 @@ function profile_load(&$a, $nickname, $profile = 0) {
// Can the observer see our profile?
require_once('include/permissions.php');
if(! perm_is_allowed($user[0]['channel_id'],$observer['xchan_hash'],'view_profile') {
if(! perm_is_allowed($user[0]['channel_id'],$observer['xchan_hash'],'view_profile')) {
// permission denied
//TODO: place error message
return;