diff options
author | friendica <info@friendica.com> | 2013-01-31 16:39:50 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-31 16:39:50 -0800 |
commit | 24cd0d98a77d52485925d111c5dee3654d9a7578 (patch) | |
tree | 008eb190efbbfdc07329b6f04c5ca7240e60caf9 /mod/photo.php | |
parent | 02e099da455f0ca42720e60eabe65ba8d4560373 (diff) | |
download | volse-hubzilla-24cd0d98a77d52485925d111c5dee3654d9a7578.tar.gz volse-hubzilla-24cd0d98a77d52485925d111c5dee3654d9a7578.tar.bz2 volse-hubzilla-24cd0d98a77d52485925d111c5dee3654d9a7578.zip |
this should fix xchan photo permissions
Diffstat (limited to 'mod/photo.php')
-rw-r--r-- | mod/photo.php | 2 |
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']); |