aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorTobias Diekershoff <tobias.diekershoff@gmx.net>2011-05-28 10:37:33 +0200
committerTobias Diekershoff <tobias.diekershoff@gmx.net>2011-05-28 10:37:33 +0200
commit770d1bb7a368cdaba8e7340b54fd4b13ffea66b8 (patch)
treee47786d170dacd9ca59569a8ff8e558e5d8b610c /mod/photos.php
parent5e01432c6f15714370f3fd4f07eaf35615052955 (diff)
parent69f014d02b0d53ac2b42cbebe3d30418a2d0f612 (diff)
downloadvolse-hubzilla-770d1bb7a368cdaba8e7340b54fd4b13ffea66b8.tar.gz
volse-hubzilla-770d1bb7a368cdaba8e7340b54fd4b13ffea66b8.tar.bz2
volse-hubzilla-770d1bb7a368cdaba8e7340b54fd4b13ffea66b8.zip
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 89fef2ee8..71d00ed25 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -722,6 +722,8 @@ function photos_content(&$a) {
$owner_uid = $a->data['user']['uid'];
+
+
$community_page = (($a->data['user']['page-flags'] == PAGE_COMMUNITY) ? true : false);
if((local_user()) && (local_user() == $owner_uid))
@@ -763,6 +765,15 @@ function photos_content(&$a) {
}
}
+ $r = q("SELECT `hidewall` FROM `profile` WHERE `uid` = %d AND `is-default` = 1 LIMIT 1",
+ intval($owner_uid)
+ );
+
+ if(count($r) && $r[0]['hidewall'] && (local_user() != $owner_uid) && (! $remote_contact)) {
+ notice( t('Access to this item is restricted.') . EOL);
+ return;
+ }
+
// default permissions - anonymous user
$sql_extra = " AND `allow_cid` = '' AND `allow_gid` = '' AND `deny_cid` = '' AND `deny_gid` = '' ";