aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-01-31 16:39:50 -0800
committerfriendica <info@friendica.com>2013-01-31 16:39:50 -0800
commit24cd0d98a77d52485925d111c5dee3654d9a7578 (patch)
tree008eb190efbbfdc07329b6f04c5ca7240e60caf9 /mod
parent02e099da455f0ca42720e60eabe65ba8d4560373 (diff)
downloadvolse-hubzilla-24cd0d98a77d52485925d111c5dee3654d9a7578.tar.gz
volse-hubzilla-24cd0d98a77d52485925d111c5dee3654d9a7578.tar.bz2
volse-hubzilla-24cd0d98a77d52485925d111c5dee3654d9a7578.zip
this should fix xchan photo permissions
Diffstat (limited to 'mod')
-rw-r--r--mod/photo.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/photo.php b/mod/photo.php
index c8fd55706..aff4dc895 100644
--- a/mod/photo.php
+++ b/mod/photo.php
@@ -88,7 +88,7 @@ function photo_init(&$a) {
);
if($r) {
- $allowed = perm_is_allowed($r[0]['uid'],$observer_xchan,'view_photos');
+ $allowed = (($r[0]['uid']) ? perm_is_allowed($r[0]['uid'],$observer_xchan,'view_photos') : true);
$sql_extra = permissions_sql($r[0]['uid']);