mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:15:11 +00:00
ensure item_private tracks acl fields on edit
This commit is contained in:
parent
0f6c321e3f
commit
2d6a1795b7
2 changed files with 11 additions and 2 deletions
11
mod/item.php
11
mod/item.php
|
@ -262,6 +262,7 @@ function item_post(&$a) {
|
|||
|
||||
|
||||
if($orig_post) {
|
||||
$private = 0;
|
||||
// webpages are allowed to change ACLs after the fact. Normal conversation items aren't.
|
||||
if($webpage) {
|
||||
$str_group_allow = perms2str($_REQUEST['group_allow']);
|
||||
|
@ -275,13 +276,21 @@ function item_post(&$a) {
|
|||
$str_group_deny = $orig_post['deny_gid'];
|
||||
$str_contact_deny = $orig_post['deny_cid'];
|
||||
}
|
||||
|
||||
if((strlen($str_group_allow))
|
||||
|| strlen($str_contact_allow)
|
||||
|| strlen($str_group_deny)
|
||||
|| strlen(str_contact_deny)) {
|
||||
$private = 1;
|
||||
}
|
||||
|
||||
|
||||
$location = $orig_post['location'];
|
||||
$coord = $orig_post['coord'];
|
||||
$verb = $orig_post['verb'];
|
||||
$app = $orig_post['app'];
|
||||
$title = $_REQUEST['title'];
|
||||
$body = $_REQUEST['body'];
|
||||
$private = $orig_post['item_private'];
|
||||
$item_flags = $orig_post['item_flags'];
|
||||
$item_restrict = $orig_post['item_restrict'];
|
||||
$postopts = $orig_post['postopts'];
|
||||
|
|
|
@ -1 +1 @@
|
|||
2014-06-14.706
|
||||
2014-06-15.707
|
||||
|
|
Loading…
Reference in a new issue