Commit b9573ee1 authored by Ivan Tyagov's avatar Ivan Tyagov

Discussion Post should behave as embedded document by default (i.e. acquire security from parent).

parent 8ad37760
......@@ -27,7 +27,7 @@
</item>
<item>
<key> <string>acquire_local_roles</string> </key>
<value> <int>0</int> </value>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>content_icon</string> </key>
......
<workflow_chain>
<chain>
<type>Discussion Post</type>
<workflow>document_conversion_interaction_workflow, document_publication_workflow, document_security_interaction_workflow, edit_workflow</workflow>
<workflow>edit_workflow, embeddedt_workflow</workflow>
</chain>
<chain>
<type>Discussion Thread</type>
......
......@@ -71,7 +71,6 @@ discussion_post = context.newContent(\n
\n
# depending on security model Post can be submited for review\n
portal_status_message = "New post created in background."\n
discussion_post.release()\n
\n
return context.Base_redirect(form_id,\n
keep_items = dict(portal_status_message=context.Base_translateString(portal_status_message)))\n
......
......@@ -76,7 +76,6 @@
<value>
<list>
<string>listbox</string>
<string>my_rss_link</string>
</list>
</value>
</item>
......@@ -100,6 +99,7 @@
<list>
<string>my_title</string>
<string>my_include</string>
<string>my_rss_link</string>
</list>
</value>
</item>
......
......@@ -97,7 +97,6 @@ discussion_post = discussion_thread.newContent(\n
# depending on security model Thread and Post can be directly published or shared\n
portal_status_message = "New discussion created. Your post will be reviewed for approval."\n
discussion_thread.submit()\n
discussion_post.submit()\n
\n
if send_notification_text not in (\'\', None):\n
# we can send notifications\n
......
99
\ No newline at end of file
100
\ No newline at end of file
Discussion Post | document_conversion_interaction_workflow
Discussion Post | document_publication_workflow
Discussion Post | document_security_interaction_workflow
Discussion Post | edit_workflow
Discussion Post | embeddedt_workflow
Discussion Thread | document_conversion_interaction_workflow
Discussion Thread | document_publication_workflow
Discussion Thread | document_security_interaction_workflow
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment