aboutsummaryrefslogtreecommitdiffstats
path: root/mod/page.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/page.php')
-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;