diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-11-18 01:52:11 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-11-18 01:52:11 +0100 |
commit | 545dc5cf65fef823a9ca8a5bcde6e346d4503d4c (patch) | |
tree | 91a1e3e32cef9019ffbb5aeebe42197a1616bc3e /include/widgets.php | |
parent | c545ada746a384988172ea1ce28d43dd4ac276b3 (diff) | |
parent | a089064588352b60bebf27c94a51d480f8062368 (diff) | |
download | volse-hubzilla-545dc5cf65fef823a9ca8a5bcde6e346d4503d4c.tar.gz volse-hubzilla-545dc5cf65fef823a9ca8a5bcde6e346d4503d4c.tar.bz2 volse-hubzilla-545dc5cf65fef823a9ca8a5bcde6e346d4503d4c.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/widgets.php')
-rw-r--r-- | include/widgets.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/widgets.php b/include/widgets.php index 5a135ae52..fc6fee2ef 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -1229,6 +1229,10 @@ function widget_album($args) { $owner_uid = get_app()->profile_uid; $sql_extra = permissions_sql($owner_uid); + + if(! perm_is_allowed($owner_uid,get_observer_hash(),'view_storage')) + return ''; + if($args['album']) $album = $args['album']; if($args['title']) |