Plone: user role drops to Anonymous when adding an item to a folderish type with custom workflow [closed]

StackOverflow https://stackoverflow.com/questions/14655318

  •  06-03-2022
  •  | 
  •  

Question

I have a custom folderish archetype-based type with a two-state custom workflow attached to it. This type restricts subtype to 'File'.

Everything seems to work, except when I ( a user with 'Site Administrator' privileges) try to add an instance of type File, I'm able to get into edit menu and save the object, but when view of that object is displayed, the following access violation error is raised:

Unauthorized: Your user account does not have the required permission.
Access to '@@plone_redirector_view' of (SalesProduct at /testsite/testproduct) denied.
Your user account, Anonymous User, exists at (unknown).
Access requires View_Permission, granted to the following roles:
['Manager', 'Owner', 'Reviewer', 'Site Administrator'].
Your roles in this context are ['Anonymous'].
> /home/alex/projects/eggs/AccessControl-2.13.7-py2.6-linux-x86_64.egg/AccessControl/ImplPython.py(797)raiseVerbose()
-> raise Unauthorized(text)

Also child object doesn't show workflow menu.

There's similar question about folderish type support How to directly publish only child items of my Container type in Plone? but it doesn't solve the problem as in my case it seems to be more of a permission problem than workflow issue.

UPDATE: Permission issue obscuring the real problem. Examine stack trace to fix it. Thanks Martin.

Was it helpful?

Solution

Authorization error obscures real error message. Solution: examine the stack and add a debug point before authorization error is triggered.

Thanks Martijn!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top