more photos work

This commit is contained in:
redmatrix
2015-06-17 18:26:56 -07:00
parent 6ab20eb1b5
commit 2963be60e5
4 changed files with 15 additions and 6 deletions

View File

@@ -351,12 +351,12 @@ function attach_store($channel, $observer_hash, $options = '', $arr = null) {
$album = (($arr) ? $arr['album'] : '');
$newalbum = (($arr) ? $arr['newalbum'] : '');
$hash = (($arr && $arr['hash']) ? $arr['hash'] : null);
$upload_path = (($arr && $arr['directory']) ? $arr['directory'] : '');
logger('arr: ' . print_r($arr,true));
// 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')) {
$ret['message'] = t('Permission denied.');