aboutsummaryrefslogtreecommitdiffstats
path: root/mod/webpages.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-12-07 15:20:12 -0800
committerfriendica <info@friendica.com>2013-12-07 15:20:12 -0800
commit48c650c715dde9ab7f748b4ba9a82bd2e51e8eb2 (patch)
treea6defba2a38efd8623c09b7d6905fedaadeb3280 /mod/webpages.php
parentf2d8127012c36cd2c25959c2582982c5d54515bc (diff)
downloadvolse-hubzilla-48c650c715dde9ab7f748b4ba9a82bd2e51e8eb2.tar.gz
volse-hubzilla-48c650c715dde9ab7f748b4ba9a82bd2e51e8eb2.tar.bz2
volse-hubzilla-48c650c715dde9ab7f748b4ba9a82bd2e51e8eb2.zip
improve editing ability of webpages - acls, photos, location, page link title, etc.
Diffstat (limited to 'mod/webpages.php')
-rw-r--r--mod/webpages.php19
1 files changed, 18 insertions, 1 deletions
diff --git a/mod/webpages.php b/mod/webpages.php
index 5257bc91d..90004faa1 100644
--- a/mod/webpages.php
+++ b/mod/webpages.php
@@ -60,13 +60,30 @@ function webpages_content(&$a) {
require_once ('include/conversation.php');
require_once('include/acl_selectors.php');
+
+ if(local_user() && local_user() == $a->profile_uid) {
+ $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']
+ );
+ }
+ else
+ $channel_acl = array();
+
+
+
+
+
$x = array(
'webpage' => ITEM_WEBPAGE,
'is_owner' => true,
'nickname' => $a->profile['channel_address'],
'lockstate' => (($group || $cid || $channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
'bang' => (($group || $cid) ? '!' : ''),
- 'acl' => ((local_user() && local_user() == $owner) ? populate_acl($a->get_channel()) : ''),
+ 'acl' => ((local_user() && local_user() == $owner) ? populate_acl($channel_acl) : ''),
'visitor' => 'block',
'profile_uid' => intval($owner),
'mimetype' => $mimetype,