Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/permissions.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/permissions.xml,v diff -u -r1.10 -r1.11 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/permissions.xml 12 Feb 2004 22:06:27 -0000 1.10 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/permissions.xml 7 Apr 2004 17:07:22 -0000 1.11 @@ -416,6 +416,7 @@ set user_id [ad_conn user_id] set context_bar [ad_context_bar] +# this line should use permission::permission_p instead of ad_permission_p set create_p [ad_permission_p $package_id create] db_multirow notes notes { @@ -449,7 +450,7 @@ This example shows both the Tcl and PL/SQL APIs for checking -permissions. The Tcl proc ad_permission_p and the PL/SQL +permissions. The Tcl proc permission::permission_p and the PL/SQL function acs_permission.permission_p both return a flag indicating whether the current user has permission to perform the given action. By default, the Tcl procedure extracts the user_id out