Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/subsites.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/subsites.xml,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/subsites.xml 11 Dec 2003 21:39:48 -0000 1.6 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/subsites.xml 13 Feb 2004 19:19:39 -0000 1.7 @@ -157,13 +157,13 @@ set package_id [ad_conn package_id] if {[info exists note_id]} { - ad_require_permission $note_id write + permission::require_permission -object_id $note_id -privilege write - set context_bar [ad_context_bar "Edit Note"] + set context_bar [ad_context_bar "Edit Note"] } else { - ad_require_permission $package_id create + permission::require_permission -object_id $note_id -privilege create - set context_bar [ad_context_bar "New Note"] + set context_bar [ad_context_bar "New Note"] } Index: openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml,v diff -u -r1.13 -r1.14 --- openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml 12 Feb 2004 13:51:42 -0000 1.13 +++ openacs-4/packages/acs-core-docs/www/xml/developers-guide/tutorial-advanced.xml 13 Feb 2004 19:19:39 -0000 1.14 @@ -223,7 +223,9 @@ set package_id [ad_conn package_id] -set admin_p [ad_require_permission $package_id admin] +permission::require_permission \ + -object_id $package_id \ + -privilege admin] set context [list]