aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-04 14:47:14 -0700
committerfriendica <info@friendica.com>2013-10-04 14:47:14 -0700
commite9c535f40a591ba9863543673fc91aa76e3a17ac (patch)
tree0cc84ea5643b97978771134b78b4f99831e91eb9
parente369e5ddc53e6a0d489ceaed0bd13849c7d031f1 (diff)
parenta026832009608d9a492be35b9b462cf00a36d59d (diff)
downloadvolse-hubzilla-e9c535f40a591ba9863543673fc91aa76e3a17ac.tar.gz
volse-hubzilla-e9c535f40a591ba9863543673fc91aa76e3a17ac.tar.bz2
volse-hubzilla-e9c535f40a591ba9863543673fc91aa76e3a17ac.zip
Merge https://github.com/friendica/red into zpull
-rw-r--r--mod/channel.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/channel.php b/mod/channel.php
index 5a66f5e07..e5af91b53 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -115,6 +115,11 @@ function channel_content(&$a, $update = 0, $load = false) {
$perms = get_all_perms($a->profile['profile_uid'],$ob_hash);
if(! $perms['view_stream']) {
+ // We may want to make the target of this redirect configurable
+ if($perms['view_profile']) {
+ notice( t('Insufficient permissions. Request redirected to profile page.') . EOL);
+ goaway (z_root() . "/profile/" . $a->profile['channel_address']);
+ }
notice( t('Permission denied.') . EOL);
return;
}