I have this schema for a content type:
class IDeclaration(model.Schema):
""" Marker interface and Dexterity Python Schema for Declaration
"""
read_permission(author_id=permissions.ManagePortal)
write_permission(author_id=permissions.ManagePortal)
author_id = schema.TextLine(
title=_("Author ID"),
required=True)
read_permission(author_name=permissions.ManagePortal)
write_permission(author_name=permissions.ManagePortal)
author_name = schema.TextLine(
title=_("Author Name"),
required=True)
The standard edit
view of Plone renders the fields both for the accounts with Manager
and Editor
roles. My expectation is that the fields are only available for Manager
but not for Editor
.
Anything missing?