aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2013-07-16 18:48:53 +0100
committerThomas Willingham <founder@kakste.com>2013-07-16 18:48:53 +0100
commit3743d5ca79a602e700df1b5a176065573694f04d (patch)
tree668a72f8b515cc7e6588d329c8071b485d8c93f5 /mod
parent328ebda77a44bfeaa3ac5455a4713db402bc54bf (diff)
downloadvolse-hubzilla-3743d5ca79a602e700df1b5a176065573694f04d.tar.gz
volse-hubzilla-3743d5ca79a602e700df1b5a176065573694f04d.tar.bz2
volse-hubzilla-3743d5ca79a602e700df1b5a176065573694f04d.zip
Observer permissions (but not ACL yet) for webpages.
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;