aboutsummaryrefslogtreecommitdiffstats
path: root/mod/rpost.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-04-16 11:15:04 +0200
committerMario Vavti <mario@mariovavti.com>2015-04-16 11:15:04 +0200
commit90d3a6c02dd12317c72ad790a1b6810f885f638c (patch)
tree9561f673536b46d67b1a4c9df73f37fb10554eb3 /mod/rpost.php
parentb42bb09635c6040945bcc65e7b7e6218870b92ea (diff)
downloadvolse-hubzilla-90d3a6c02dd12317c72ad790a1b6810f885f638c.tar.gz
volse-hubzilla-90d3a6c02dd12317c72ad790a1b6810f885f638c.tar.bz2
volse-hubzilla-90d3a6c02dd12317c72ad790a1b6810f885f638c.zip
make rpost respect default post permissions
Diffstat (limited to 'mod/rpost.php')
-rw-r--r--mod/rpost.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/mod/rpost.php b/mod/rpost.php
index 10ae6b8ab..1bde121e4 100644
--- a/mod/rpost.php
+++ b/mod/rpost.php
@@ -94,6 +94,13 @@ function rpost_content(&$a) {
$channel = $a->get_channel();
+ $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']
+ );
+
$o .= replace_macros(get_markup_template('edpost_head.tpl'), array(
'$title' => t('Edit post')
));
@@ -111,7 +118,7 @@ function rpost_content(&$a) {
'nickname' => $channel['channel_address'],
'lockstate' => (($channel['channel_allow_cid'] || $channel['channel_allow_gid']
|| $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
- 'acl' => populate_acl($channel),
+ 'acl' => populate_acl($channel_acl),
'bang' => '',
'visitor' => true,
'profile_uid' => local_channel(),