From bdedda7c6b4bf85b5fae151e6d93efe3f01dffa3 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 15 Jun 2015 20:43:49 -0700 Subject: fix attachment permissions when they also contain an image. --- include/attach.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/attach.php') diff --git a/include/attach.php b/include/attach.php index 1860d3364..507b328d3 100644 --- a/include/attach.php +++ b/include/attach.php @@ -347,6 +347,8 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) { $sql_options = ''; $source = (($arr) ? $arr['source'] : ''); + // This is currently used only in mod/wall_attach + $str_contact_allow = perms2str(((is_array($arr['contact_allow'])) ? $arr['contact_allow'] : explode(',',$arr['contact_allow']))); if(! perm_is_allowed($channel_id,get_observer_hash(), 'write_storage')) { -- cgit v1.2.3