Index: openacs-4/packages/acs-core-docs/www/permissions-design.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/permissions-design.html,v diff -u -r1.33.2.1 -r1.33.2.2 --- openacs-4/packages/acs-core-docs/www/permissions-design.html 21 Aug 2013 10:19:27 -0000 1.33.2.1 +++ openacs-4/packages/acs-core-docs/www/permissions-design.html 24 Oct 2014 14:33:59 -0000 1.33.2.2 @@ -156,10 +156,10 @@ permissions-create.sql

Tcl Procedures

Two tcl procedures provide a simple call for the query, "Can this user perform this method on this object?" One returns true or false, the other presents an error page.

To receive a true or false value, Tcl code should call:

-ad_permission_p $object_id $object_type $method -user_id $user_id
+permission::permission_p -object_id $object_id -party_id $user_id -privilege $method
 

If the user_id argument is left out, then the currently logged in user is checked. To create an error page, Tcl code should call:

-ad_require_permission $object_id $object_type $method
+permission::require_permission -object_id $object_id -privilege $method
 

These procedures are defined in acs-permissions-procs.tcl.

User Interface

All users of the permissions system are the same at the user-interface level. If you have the administer_privileges method permission on an object, then you may edit privileges for that object with the UI.

The UI currently provides a list of all granted permissions on the object.