You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a new archetype based on FormFolder; I noticed a strange behavior with fields created in the FormFolder/initializeArchetype method that I customized: every time I get an "Unauthorized" error with fields creation. But every content at the end was correctly created/configured under this form. I noticed that in the moment I get the Unauthorized, the method it's running with Anonymous User.
I have checked this behaviour with original FormFolder code (1.7.6 version, with Plone 4.2) and also here I noticed that during creation, in a given moment this method is running with anonymous user and get this warning:
"User not authorized to create mail adapters. Form Folder created with no action adapter."
But also in this case the mailer adapter was correctly created (and of course here the exception seems handled in some way).
This problem happened to me also with other field types in my custom form.
I think a solution could be the one to check if current user is not the Anonymous one and only in this case execute this code: usually anonymous can't create objects.
But I'm guessing if this could be a problem.
The text was updated successfully, but these errors were encountered:
I have created a new archetype based on FormFolder; I noticed a strange behavior with fields created in the FormFolder/initializeArchetype method that I customized: every time I get an "Unauthorized" error with fields creation. But every content at the end was correctly created/configured under this form. I noticed that in the moment I get the Unauthorized, the method it's running with Anonymous User.
I have checked this behaviour with original FormFolder code (1.7.6 version, with Plone 4.2) and also here I noticed that during creation, in a given moment this method is running with anonymous user and get this warning:
"User not authorized to create mail adapters. Form Folder created with no action adapter."
But also in this case the mailer adapter was correctly created (and of course here the exception seems handled in some way).
This problem happened to me also with other field types in my custom form.
I think a solution could be the one to check if current user is not the Anonymous one and only in this case execute this code: usually anonymous can't create objects.
But I'm guessing if this could be a problem.
The text was updated successfully, but these errors were encountered: