aboutsummaryrefslogtreecommitdiffstats
path: root/mod/filestorage.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/filestorage.php')
-rw-r--r--mod/filestorage.php4
1 files changed, 4 insertions, 0 deletions
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,