issue #432 permission changes lost editing webpage (and other non-post items)
This commit is contained in:
parent
3da4656e41
commit
fc550ae330
@ -1971,8 +1971,6 @@ function item_store($arr,$allow_exec = false) {
|
|||||||
|
|
||||||
function item_store_update($arr,$allow_exec = false) {
|
function item_store_update($arr,$allow_exec = false) {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$d = array('item' => $arr, 'allow_exec' => $allow_exec);
|
$d = array('item' => $arr, 'allow_exec' => $allow_exec);
|
||||||
call_hooks('item_store_update', $d );
|
call_hooks('item_store_update', $d );
|
||||||
$arr = $d['item'];
|
$arr = $d['item'];
|
||||||
|
15
mod/item.php
15
mod/item.php
@ -259,11 +259,17 @@ function item_post(&$a) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($orig_post) {
|
if($orig_post) {
|
||||||
$str_group_allow = $orig_post['allow_gid'];
|
$str_group_allow = ((array_key_exists('group_allow',$_REQUEST))
|
||||||
$str_contact_allow = $orig_post['allow_cid'];
|
? perms2str($_REQUEST['group_allow']) : $orig_post['allow_gid']);
|
||||||
$str_group_deny = $orig_post['deny_gid'];
|
$str_contact_allow = ((array_key_exists('contact_allow',$_REQUEST))
|
||||||
$str_contact_deny = $orig_post['deny_cid'];
|
? 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'];
|
$location = $orig_post['location'];
|
||||||
$coord = $orig_post['coord'];
|
$coord = $orig_post['coord'];
|
||||||
$verb = $orig_post['verb'];
|
$verb = $orig_post['verb'];
|
||||||
@ -305,6 +311,7 @@ function item_post(&$a) {
|
|||||||
$str_contact_deny = perms2str($_REQUEST['contact_deny']);
|
$str_contact_deny = perms2str($_REQUEST['contact_deny']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$location = notags(trim($_REQUEST['location']));
|
$location = notags(trim($_REQUEST['location']));
|
||||||
$coord = notags(trim($_REQUEST['coord']));
|
$coord = notags(trim($_REQUEST['coord']));
|
||||||
$verb = notags(trim($_REQUEST['verb']));
|
$verb = notags(trim($_REQUEST['verb']));
|
||||||
|
Reference in New Issue
Block a user