aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-17 02:02:54 -0700
committerfriendica <info@friendica.com>2013-07-17 02:02:54 -0700
commit2323e946ee7e239ce138e0ca0a9b54624b901c66 (patch)
treea95f6919cd170c945349676209459e21e1506bda /mod
parentd6133c861cfdaa4ec6a6f5fbb3b2a9062ad4bc91 (diff)
parent3743d5ca79a602e700df1b5a176065573694f04d (diff)
downloadvolse-hubzilla-2323e946ee7e239ce138e0ca0a9b54624b901c66.tar.gz
volse-hubzilla-2323e946ee7e239ce138e0ca0a9b54624b901c66.tar.bz2
volse-hubzilla-2323e946ee7e239ce138e0ca0a9b54624b901c66.zip
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'mod')
-rw-r--r--mod/page.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/page.php b/mod/page.php
index e1274fff6..51b292f37 100644
--- a/mod/page.php
+++ b/mod/page.php
@@ -22,6 +22,17 @@ function page_init(&$a) {
function page_content(&$a) {
+ $observer = $a->get_observer();
+ $ob_hash = (($observer) ? $observer['xchan_hash'] : '');
+
+ $perms = get_all_perms($a->profile['profile_uid'],$ob_hash);
+
+ if(! $perms['view_pages']) {
+ notice( t('Permission denied.') . EOL);
+ return;
+ }
+
+
if(argc() < 3) {
notice( t('Invalid item.') . EOL);
return;