• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Securing Components > Step 1: Declaring Permissions

Step 1: Declaring Permissions

In contrast to Zope 2, Zope 3 permissions have to be explicitly defined. For your message board, it will suffice to define the following four basic permissions:

  • View This permission allows users to access the data for message boards and messages. Every regular message board User is going to have this permission.

  • Add This permission allows someone to create (that is, post) a message and add it to the message board or another message. Note that every regular User is allowed to do this because posting and replying should be publicly available by default.

  • Edit You want to allow only the message board Editor to edit content (for the purpose of moderation) because you would not want a regular user to be able to manipulate posts after creation.

  • Delete The Editor must be able to get rid of messages, of course. Therefore, the Delete permission is assigned to the Editor. Note that this permission does not allow the Editor to delete MessageBoard objects from folders or other containers.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint