Merge pull request #22 from MicMee/master

Added error message about not enough permission to view a profile
This commit is contained in:
friendica 2013-01-18 15:31:01 -08:00
commit bf4d3fe79c

View File

@ -1258,7 +1258,7 @@ function profile_load(&$a, $nickname, $profile = 0) {
require_once('include/permissions.php');
if(! perm_is_allowed($user[0]['channel_id'],$observer['xchan_hash'],'view_profile')) {
// permission denied
//TODO: place error message
notice( t(' Sorry, you don't have the permission to view this profile. ') . EOL);
return;
}