aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-06-15 20:43:49 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-06-15 20:43:49 -0700
commitbdedda7c6b4bf85b5fae151e6d93efe3f01dffa3 (patch)
tree7b3787ff491aac66a60256954b52940047faed65 /include
parent2adc7a51ad0e3893efc9aac852e3b80d75d9a65d (diff)
downloadvolse-hubzilla-bdedda7c6b4bf85b5fae151e6d93efe3f01dffa3.tar.gz
volse-hubzilla-bdedda7c6b4bf85b5fae151e6d93efe3f01dffa3.tar.bz2
volse-hubzilla-bdedda7c6b4bf85b5fae151e6d93efe3f01dffa3.zip
fix attachment permissions when they also contain an image.
Diffstat (limited to 'include')
-rw-r--r--include/attach.php2
1 files changed, 2 insertions, 0 deletions
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')) {