From 14402bdf9806929d910d8f6a2549de7f45c2a61f Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 30 Apr 2014 16:35:50 -0700 Subject: missing permissions block in mod_filestorage --- mod/filestorage.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mod/filestorage.php') diff --git a/mod/filestorage.php b/mod/filestorage.php index 3e53a1e93..ed7164070 100644 --- a/mod/filestorage.php +++ b/mod/filestorage.php @@ -114,6 +114,8 @@ function filestorage_content(&$a) { $aclselect_e = populate_acl($f); $is_a_dir = (($f['flags'] & ATTACH_FLAG_DIR) ? true : false); + $lockstate = (($f['allow_cid'] || $f['allow_gid'] || $f['deny_cid'] || $f['deny_gid']) ? 'lock' : 'unlock'); + $o = replace_macros(get_markup_template('attach_edit.tpl'), array( '$header' => t('Edit file permissions'), @@ -123,6 +125,8 @@ function filestorage_content(&$a) { '$channelnick' => $channel['channel_address'], '$permissions' => t('Permissions'), '$aclselect' => $aclselect_e, + '$lockstate' => $lockstate, + '$permset' => t('Set/edit permissions'), '$recurse' => t('Include all files and sub folders'), '$backlink' => t('Return to file list'), '$isadir' => $is_a_dir, -- cgit v1.2.3