aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-11 15:51:25 -0700
committerfriendica <info@friendica.com>2014-04-11 15:51:25 -0700
commit8b39b5ae4e56535c11fe192f64db3e923d608066 (patch)
tree68671af45f22f35e25c2a0e5280b9fd0de233f27 /mod
parent7e6804b599a94c29fb9ca5e9a89ec847b6cef9ab (diff)
downloadvolse-hubzilla-8b39b5ae4e56535c11fe192f64db3e923d608066.tar.gz
volse-hubzilla-8b39b5ae4e56535c11fe192f64db3e923d608066.tar.bz2
volse-hubzilla-8b39b5ae4e56535c11fe192f64db3e923d608066.zip
via Mario: default channel permissions not working on channel page
Diffstat (limited to 'mod')
-rw-r--r--mod/channel.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/mod/channel.php b/mod/channel.php
index 9ee82a682..395160d2c 100644
--- a/mod/channel.php
+++ b/mod/channel.php
@@ -74,6 +74,7 @@ function channel_content(&$a, $update = 0, $load = false) {
$is_owner = (((local_user()) && ($a->profile['profile_uid'] == local_user())) ? true : false);
+ $channel = $a->get_channel();
$observer = $a->get_observer();
$ob_hash = (($observer) ? $observer['xchan_hash'] : '');
@@ -96,12 +97,16 @@ function channel_content(&$a, $update = 0, $load = false) {
$o .= common_friends_visitor_widget($a->profile['profile_uid']);
- $channel_acl = array(
- 'allow_cid' => $channel['channel_allow_cid'],
- 'allow_gid' => $channel['channel_allow_gid'],
- 'deny_cid' => $channel['channel_deny_cid'],
- 'deny_gid' => $channel['channel_deny_gid']
- );
+ if($channel && $is_owner) {
+ $channel_acl = array(
+ 'allow_cid' => $channel['channel_allow_cid'],
+ 'allow_gid' => $channel['channel_allow_gid'],
+ 'deny_cid' => $channel['channel_deny_cid'],
+ 'deny_gid' => $channel['channel_deny_gid']
+ );
+ }
+ else
+ $channel_acl = array();
if($perms['post_wall']) {