diff doc/customizing.txt @ 3117:460eb0209a9e

Permissions improvements. - have Permissions only test the check function if itemid is suppled - modify index templates to check for row-level Permission - more documentation of security mechanisms - better unit tests for security mechanisms
author Richard Jones <richard@users.sourceforge.net>
date Fri, 28 Jan 2005 03:51:19 +0000
parents 7b3f1a610d9c
children bdd31aaf556e
line wrap: on
line diff
--- a/doc/customizing.txt	Wed Jan 26 17:27:21 2005 +0000
+++ b/doc/customizing.txt	Fri Jan 28 03:51:19 2005 +0000
@@ -2,7 +2,7 @@
 Customising Roundup
 ===================
 
-:Version: $Revision: 1.165 $
+:Version: $Revision: 1.166 $
 
 .. This document borrows from the ZopeBook section on ZPT. The original is at:
    http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -51,6 +51,7 @@
 html/               Web interface templates, images and style sheets         
 =================== ======================================================== 
 
+
 Tracker Configuration
 =====================
 
@@ -855,6 +856,29 @@
     #   db.security.addPermissionToRole('Anonymous', p)
 
 
+Automatic Permission Checks
+---------------------------
+
+Permissions are automatically checked when information is rendered
+through the web. This includes:
+
+1. View checks for properties when being rendered via the ``plain()`` or
+   similar methods. If the check fails, the text "[hidden]" will be
+   displayed.
+2. Edit checks for properties when the edit field is being rendered via
+   the ``field()`` or similar methods. If the check fails, the property
+   will be rendered via the ``plain()`` method (see point 1. for subsequent
+   checking performed)
+3. View checks are performed in index pages for each item being displayed
+   such that if the user does not have permission, the row is not rendered.
+4. View checks are performed at the top of item pages for the Item being
+   displayed. If the user does not have permission, the text "You are not
+   allowed to view this page." will be displayed.
+5. View checks are performed at the top of index pages for the Class being
+   displayed. If the user does not have permission, the text "You are not
+   allowed to view this page." will be displayed.
+
+
 New User Roles
 --------------
 

Roundup Issue Tracker: http://roundup-tracker.org/