aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-11-06 11:57:33 +0100
committermarijus <mario@mariovavti.com>2014-11-06 11:57:33 +0100
commit5e7e8d1089e6249093cb6758ecf9384465640b33 (patch)
treecc6d2071865638c19bad7348c6789d97ebf78272
parenta23435540ef097eb6e718129004d259a5313ef6b (diff)
downloadvolse-hubzilla-5e7e8d1089e6249093cb6758ecf9384465640b33.tar.gz
volse-hubzilla-5e7e8d1089e6249093cb6758ecf9384465640b33.tar.bz2
volse-hubzilla-5e7e8d1089e6249093cb6758ecf9384465640b33.zip
provide a lockstate for photo uploads
-rw-r--r--mod/photos.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php
index eb634259f..8eee95075 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -555,7 +555,9 @@ function photos_content(&$a) {
'deny_cid' => $channel['channel_deny_cid'],
'deny_gid' => $channel['channel_deny_gid']
);
- }
+
+ $lockstate = (($channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock');
+ }
$aclselect_e = (($_is_owner) ? populate_acl($channel_acl,false) : '');
@@ -576,6 +578,7 @@ function photos_content(&$a) {
'$selname' => $selname,
'$permissions' => t('Permissions'),
'$aclselect' => $aclselect_e,
+ '$lockstate' => $lockstate,
'$uploader' => $ret['addon_text'],
'$default' => (($ret['default_upload']) ? true : false),
'$uploadurl' => $ret['post_url'],