Attention

This document was written for an old version of Plone, Plone 3, and was last updated 898 days ago.

To learn how to upgrade to the current version of Plone, read the upgrade manual.

Enable editing for anonymous users under certain conditions

by Mikko Ohtamaa last modified Dec 06, 2009 09:27 PM
Sometimes due to convenience it is necessary allow content editing for anonymous users. One use case is allow anonymous review and feedback in certain workflow states. This how to explains how this can be achieved.

Purpose

This how to explains how to use borg.localroles adapter to grant edit role for anonymous site visitors under certain conditions. Since borg.localroles is not included until Plone 3.1 prior versions cannot utilize this approach.

Prerequisities

  • Understanding Zope 3 views
  • Understanding Zope 3 adapters

Step by step

  1. Create local role provider
  2. Register it
  3. Hack around rendering problems when we are not yet hit our local role provider

Further information

If there is anywhere else the reader can go for more information on this topic, include some links or pointers here.


Contribute

Something wrong or out of date? Anybody can edit or create a new article in the knowledge base. Simply create an account on this site, log in, and click the Edit button to contribute.