Index: openacs-4/packages/acs-core-docs/www/permissions-tediously-explained.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/permissions-tediously-explained.html,v diff -u -r1.17 -r1.18 --- openacs-4/packages/acs-core-docs/www/permissions-tediously-explained.html 19 Nov 2003 15:44:51 -0000 1.17 +++ openacs-4/packages/acs-core-docs/www/permissions-tediously-explained.html 11 Dec 2003 23:08:46 -0000 1.18 @@ -1,15 +1,15 @@ -OpenACS 4.x Permissions Tediously Explained

OpenACS 4.x Permissions Tediously Explained

+OpenACS Permissions Tediously Explained

OpenACS Permissions Tediously Explained

by Vadim Nasardinov. Modified and converted to Docbook XML by Roberto Mello -

The code has been modified since this document was written so it is now obsolete. See this forum thread.

Overview

- The general permissions system has a relatively complex data model in OpenACS 4.x. +

The code has been modified since this document was written so it is now out of date. See this forum thread.

Overview

+ The general permissions system has a relatively complex data model in OpenACS. Developers who haven't had the time to learn the internals of the data model may end up writing seemingly correct code that crashes their system in weird ways. This writeup is the result of my running into such a piece of code and trying to understand exactly what went wrong. It is geared towards developers who understand the general permissions system to the extent that is described in the - - OpenACS 4.x Permissions documentation, + + OpenACS Permissions documentation, but who haven't had the opportunity to take a long, careful look at the system internals.

@@ -100,7 +100,7 @@

Context Hierarchy

Suppose objects A, B, ..., and F form the following hierarchy. -

Table�8.1.�Context Hierarchy Example

A

+

Table�8.1.�Context Hierarchy Example

A

object_id=10

B

object_id=20 @@ -116,7 +116,7 @@ This can be represented in the acs_objects table by the following entries: -

Table�8.2.�acs_objects example data

object_idcontext_id
2010
3010
4020
5020
6030

+

Table�8.2.�acs_objects example data

object_idcontext_id
2010
3010
4020
5020
6030

The first entry tells us that object 20 is the descendant of object 10, and the third entry shows that object 40 is the descendant of object 20. By running a CONNECT BY query, @@ -689,4 +689,4 @@ container_id from group_member_index; -

View comments on this page at openacs.org
+
View comments on this page at openacs.org