diff options
author | friendica <info@friendica.com> | 2014-05-04 17:10:33 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-05-04 17:10:33 -0700 |
commit | fc550ae330102eed57905b423ff2d8b8a64b48d3 (patch) | |
tree | b782f090eb47c78201eb70c8483cf646d41a182c /mod/item.php | |
parent | 3da4656e412730706b8e0be44dc0a751d38fdee6 (diff) | |
download | volse-hubzilla-fc550ae330102eed57905b423ff2d8b8a64b48d3.tar.gz volse-hubzilla-fc550ae330102eed57905b423ff2d8b8a64b48d3.tar.bz2 volse-hubzilla-fc550ae330102eed57905b423ff2d8b8a64b48d3.zip |
issue #432 permission changes lost editing webpage (and other non-post items)
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/mod/item.php b/mod/item.php index be59bd4c7..d1952c60e 100644 --- a/mod/item.php +++ b/mod/item.php @@ -259,11 +259,17 @@ function item_post(&$a) { } + + if($orig_post) { - $str_group_allow = $orig_post['allow_gid']; - $str_contact_allow = $orig_post['allow_cid']; - $str_group_deny = $orig_post['deny_gid']; - $str_contact_deny = $orig_post['deny_cid']; + $str_group_allow = ((array_key_exists('group_allow',$_REQUEST)) + ? perms2str($_REQUEST['group_allow']) : $orig_post['allow_gid']); + $str_contact_allow = ((array_key_exists('contact_allow',$_REQUEST)) + ? perms2str($_REQUEST['contact_allow']) : $orig_post['allow_cid']); + $str_group_deny = ((array_key_exists('group_deny',$_REQUEST)) + ? perms2str($_REQUEST['group_deny']) : $orig_post['deny_gid']); + $str_contact_deny = ((array_key_exists('contact_deny',$_REQUEST)) + ? perms2str($_REQUEST['contact_deny']) : $orig_post['deny_cid']); $location = $orig_post['location']; $coord = $orig_post['coord']; $verb = $orig_post['verb']; @@ -305,6 +311,7 @@ function item_post(&$a) { $str_contact_deny = perms2str($_REQUEST['contact_deny']); } + $location = notags(trim($_REQUEST['location'])); $coord = notags(trim($_REQUEST['coord'])); $verb = notags(trim($_REQUEST['verb'])); |