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.34.2.4 -r1.34.2.5 --- openacs-4/packages/acs-core-docs/www/permissions-design.html 6 Jan 2017 09:18:42 -0000 1.34.2.4 +++ openacs-4/packages/acs-core-docs/www/permissions-design.html 2 Jun 2017 11:12:57 -0000 1.34.2.5 @@ -116,7 +116,7 @@ questions are commonly asked: First, and most commonly, "Can this party perform this method on this object?" Two Tcl functions are provided to answer this - one which returns a boolean, the other of which results in an -error page. These tcl functions directly access the +error page. These Tcl functions directly access the acs_object_party_method_map.

The second most commonly asked question occurs when a list of objects is being displayed, often in order to provide appropriate UI functionality: "For this party, what methods are available on these objects?" @@ -153,7 +153,7 @@ privilege acs_permissions.privilege%TYPE );

These procedures are defined in -permissions-create.sql

Tcl Procedures

Two tcl procedures provide a simple call for the query, "Can this +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:

 permission::permission_p -object_id $object_id -party_id $user_id -privilege $method