rewrite of function profile_load with Mike
This commit is contained in:
parent
1dd188a29e
commit
eac452f505
2
boot.php
2
boot.php
@ -1254,7 +1254,7 @@ function profile_load(&$a, $nickname, $profile = 0) {
|
|||||||
|
|
||||||
// Can the observer see our profile?
|
// Can the observer see our profile?
|
||||||
require_once('include/permissions.php');
|
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
|
// permission denied
|
||||||
//TODO: place error message
|
//TODO: place error message
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user