Post permissions are now copied from the thread parent
This commit is contained in:
parent
999c56a284
commit
8e05c282b1
10 changed files with 141 additions and 33 deletions
|
@ -221,6 +221,10 @@ function item_insert(int $uid, array $request, bool $preview, string $return_pat
|
|||
|
||||
DI::contentItem()->postProcessPost($post, $recipients);
|
||||
|
||||
if (($post['private'] == Item::PRIVATE) && ($post['thr-parent-id'] != $post['uri-id'])) {
|
||||
DI::contentItem()->copyPermissions($post['thr-parent-id'], $post['uri-id']);
|
||||
}
|
||||
|
||||
Logger::debug('post_complete');
|
||||
|
||||
item_post_return(DI::baseUrl(), $return_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue