diff doc/customizing.txt @ 3535:75dc225613cc

fix security check for hasPermission(Permission, None) add hasRole to HTMLUser
author Richard Jones <richard@users.sourceforge.net>
date Fri, 03 Feb 2006 04:04:37 +0000
parents ef80a6c02e09
children 5cd1c83dea50
line wrap: on
line diff
--- a/doc/customizing.txt	Fri Feb 03 03:49:24 2006 +0000
+++ b/doc/customizing.txt	Fri Feb 03 04:04:37 2006 +0000
@@ -2,7 +2,7 @@
 Customising Roundup
 ===================
 
-:Version: $Revision: 1.190 $
+:Version: $Revision: 1.191 $
 
 .. This document borrows from the ZopeBook section on ZPT. The original is at:
    http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -1916,6 +1916,11 @@
                         [property=], [itemid=])
 
                 where the classname defaults to the current context.
+hasRole         specific to the "user" class - determine whether the
+                user has a Role. The signature is::
+
+                    hasRole(self, rolename)
+
 is_edit_ok      is the user allowed to Edit the current item?
 is_view_ok      is the user allowed to View the current item?
 is_retired      is the item retired?

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