Index: openacs-4/packages/acs-core-docs/www/how-do-I.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/how-do-I.html,v diff -u -r1.29 -r1.30 --- openacs-4/packages/acs-core-docs/www/how-do-I.html 8 Nov 2017 09:42:10 -0000 1.29 +++ openacs-4/packages/acs-core-docs/www/how-do-I.html 27 Mar 2018 12:22:17 -0000 1.30 @@ -88,11 +88,11 @@
set can_register_p [events::security::can_register_for_event_p -event_id $event_id]

We need to know what that procedure does, so go to /api-doc, paste events::security::can_register_for_event_p into the ACS Tcl API Search box, and click Feeling Lucky. The next pages shows the proc, and we click "show source" to see more information. The body of the proc is simply

return [permission::permission_p -party_id $user_id -object_id $event_id -privilege write]
-

This means that a given user must have the write privilige on the event in order to register. Let's assume that the priviliges inherit, so that if a user has the write privilige on the whole package, they will have the write privilege on the event.

+

This means that a given user must have the write privilege on the event in order to register. Let's assume that the privilege inherit, so that if a user has the write privilege on the whole package, they will have the write privilege on the event.

  • Setting Permissions.  - A permission has three parts: the privilige, the object of the privilige, and the subject being granted the privilige. In this case the privilige is "write," the object is the Events package, and the subject is all Registered Users. + A permission has three parts: the privilege, the object of the privilege, and the subject being granted the privilege. In this case the privilege is "write," the object is the Events package, and the subject is all Registered Users.

    1. To grant permissions on a package, start at the site map. Find the event package and click "Set permissions".