aboutsummaryrefslogtreecommitdiffstats
path: root/mod/editwebpage.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-08-08 22:38:11 -0700
committerfriendica <info@friendica.com>2013-08-08 22:38:11 -0700
commit2dfd9dce058bf829c0bdeb54e473bca762c14311 (patch)
treebfe7ab9b383303bb3e512cbb105fa24c59d4c6c2 /mod/editwebpage.php
parent3fe5a1c6b68a87f2c40f7aeba5bd401183709ad2 (diff)
parentea6f5d429da097278bf65587b28e382b5e3e87be (diff)
downloadvolse-hubzilla-2dfd9dce058bf829c0bdeb54e473bca762c14311.tar.gz
volse-hubzilla-2dfd9dce058bf829c0bdeb54e473bca762c14311.tar.bz2
volse-hubzilla-2dfd9dce058bf829c0bdeb54e473bca762c14311.zip
Merge pull request #90 from beardy-unixer/master
Add access policy to admin panel.
Diffstat (limited to 'mod/editwebpage.php')
-rw-r--r--mod/editwebpage.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/editwebpage.php b/mod/editwebpage.php
index c7323a7f7..46c6b8817 100644
--- a/mod/editwebpage.php
+++ b/mod/editwebpage.php
@@ -9,11 +9,17 @@ function editwebpage_content(&$a) {
$which = argv(1);
// $a->get_channel() and stuff don't work here, so we've got to find the owner for ourselves.
- $owner = q("select channel_id from channel where channel_address = '%s'",
+ $r = q("select channel_id from channel where channel_address = '%s'",
dbesc($which)
);
+ if($r) {
+ $owner = intval($r[0]['channel_id']);
+ //logger('owner: ' . print_r($owner,true));
+ }
+
+
if((local_user()) && (argc() > 2) && (argv(2) === 'view')) {
$which = $channel['channel_address'];
}