aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-30 16:35:50 -0700
committerfriendica <info@friendica.com>2014-04-30 16:35:50 -0700
commit14402bdf9806929d910d8f6a2549de7f45c2a61f (patch)
treee93238a870f76e8778f9eea5bf62cc440c2aa3ca /mod
parent5592802790dbc2a934f772b2b9108ee0cd409831 (diff)
downloadvolse-hubzilla-14402bdf9806929d910d8f6a2549de7f45c2a61f.tar.gz
volse-hubzilla-14402bdf9806929d910d8f6a2549de7f45c2a61f.tar.bz2
volse-hubzilla-14402bdf9806929d910d8f6a2549de7f45c2a61f.zip
missing permissions block in mod_filestorage
Diffstat (limited to 'mod')
-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,