Hi, Guys!
We'd like to achieve that functionality:
Anonymous user able to fill and submit the form. Custom contet-type object being created and saved to particular folder.
However we're encountering 401 error while saving the object (our guess that it is some sort of temporary objects):
message: "You are not allowed to access '13782108' in this context"
type: "Unauthorized"
, despite that adding permissions were granted for anonymous user in content-type declaration and role-map.xml
.
content type declaration:
<?xml version="1.0" encoding="utf-8"?>
<object name="anonymous_application" meta_type="Dexterity FTI" i18n:domain="mydomain" xmlns:i18n="http://xml.zope.org/namespaces/i18n">
...
<property name="add_permission">addon.anonymousapplication.can_create_anonymous_application</property>
...
</object>
role-map.xml
<?xml version="1.0"?>
<rolemap>
<permissions>
...
<permission name="addon.anonymousapplication: Can create content Anonymous Application" acquire="True">
<role name="Anonymous"/>
</permission>
...
</permissions>
</rolemap>
I'm aware about adopt_roles
and adopt_user
approach: here and here
The question is: is there any way to acieve it declaratively or what we're doing wrong?
thanks )