Merge pull request #20 from MicMee/master
rewrite of profile_load in boot.php
This commit is contained in:
commit
730c9ebc57
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