fix attachment permissions when they also contain an image.

This commit is contained in:
redmatrix
2015-06-15 20:43:49 -07:00
parent 2adc7a51ad
commit bdedda7c6b
3 changed files with 18 additions and 1 deletions

View File

@@ -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')) {