issue with resetting post perms to default audience - not sticking.
This commit is contained in:
parent
982ff8733f
commit
1da3828a09
17
mod/item.php
17
mod/item.php
@ -372,13 +372,24 @@ function item_post(&$a) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if((! $walltowall) &&
|
if(! $walltowall) {
|
||||||
((array_key_exists('contact_allow',$_REQUEST))
|
if((array_key_exists('contact_allow',$_REQUEST))
|
||||||
|| (array_key_exists('group_allow',$_REQUEST))
|
|| (array_key_exists('group_allow',$_REQUEST))
|
||||||
|| (array_key_exists('contact_deny',$_REQUEST))
|
|| (array_key_exists('contact_deny',$_REQUEST))
|
||||||
|| (array_key_exists('group_deny',$_REQUEST)))) {
|
|| (array_key_exists('group_deny',$_REQUEST))) {
|
||||||
$acl->set_from_array($_REQUEST);
|
$acl->set_from_array($_REQUEST);
|
||||||
}
|
}
|
||||||
|
elseif(! $api_source) {
|
||||||
|
|
||||||
|
// if no ACL has been defined and we aren't using the API, the form
|
||||||
|
// didn't send us any parameters. This means there's no ACL or it has
|
||||||
|
// been reset to the default audience.
|
||||||
|
// If $api_source is set and there are no ACL parameters, we default
|
||||||
|
// to the channel permissions which were set in the ACL contructor.
|
||||||
|
|
||||||
|
$acl->set(array('allow_cid' => '', 'allow_gid' => '', 'deny_cid' => '', 'deny_gid' => ''));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$location = notags(trim($_REQUEST['location']));
|
$location = notags(trim($_REQUEST['location']));
|
||||||
|
Reference in New Issue
Block a user