Index: openacs-4/packages/bookmarks/bookmarks.info
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/bookmarks/bookmarks.info,v
diff -u -r1.20 -r1.21
--- openacs-4/packages/bookmarks/bookmarks.info 11 Sep 2001 19:53:11 -0000 1.20
+++ openacs-4/packages/bookmarks/bookmarks.info 13 Sep 2001 20:27:19 -0000 1.21
@@ -139,7 +139,11 @@
+
+
+
+
Index: openacs-4/packages/bookmarks/www/permissions-reset-all-2-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/bookmarks/www/permissions-reset-all-2-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/bookmarks/www/permissions-reset-all-2-oracle.xql 13 Sep 2001 20:27:19 -0000 1.1
@@ -0,0 +1,26 @@
+
+
+
+ oracle8.1.6
+
+
+
+ delete from acs_permissions where object_id in (select bookmark_id from bm_bookmarks
+start with parent_id = :root_folder_id
+connect by prior bookmark_id = parent_id)
+and grantee_id <> :viewed_user_id
+
+
+
+
+
+
+ update acs_objects set security_inherit_p = 't'
+where object_id in (select bookmark_id from bm_bookmarks
+start with parent_id = :root_folder_id
+connect by prior bookmark_id = parent_id)
+
+
+
+
+
Index: openacs-4/packages/bookmarks/www/permissions-reset-all-2-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/bookmarks/www/permissions-reset-all-2-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/bookmarks/www/permissions-reset-all-2-postgresql.xql 13 Sep 2001 20:27:19 -0000 1.1
@@ -0,0 +1,50 @@
+
+
+
+ postgresql7.1
+
+
+
+
+delete from
+ acs_permissions
+where
+ object_id in
+ (
+ select bookmark_id from bm_bookmarks
+ where tree_sortkey like
+ (
+ select tree_sortkey || '%'
+ from bm_bookmarks
+ where bookmark_id = :root_folder_id
+ )
+ )
+and grantee_id <> :viewed_user_id
+
+
+
+
+
+
+
+update
+ acs_objects
+set
+ security_inherit_p = 't'
+where
+ object_id in
+ (
+ select bookmark_id from bm_bookmarks
+ where tree_sortkey like
+ (
+ select tree_sortkey || '%'
+ from bm_bookmarks
+ where bookmark_id = :root_folder_id
+ )
+ )
+
+
+
+
+
+
Index: openacs-4/packages/bookmarks/www/permissions-reset-all-oracle.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/bookmarks/www/permissions-reset-all-oracle.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/bookmarks/www/permissions-reset-all-oracle.xql 13 Sep 2001 20:27:19 -0000 1.1
@@ -0,0 +1,16 @@
+
+
+
+ oracle8.1.6
+
+
+
+ select bookmark_id, local_title from bm_bookmarks
+where acs_permission.permission_p(bookmark_id, acs.magic_object_id('registered_users'), 'read') <> :public_p
+start with parent_id = :root_folder_id
+connect by prior bookmark_id = parent_id
+
+
+
+
+
Index: openacs-4/packages/bookmarks/www/permissions-reset-all-postgresql.xql
===================================================================
RCS file: /usr/local/cvsroot/openacs-4/packages/bookmarks/www/permissions-reset-all-postgresql.xql,v
diff -u
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ openacs-4/packages/bookmarks/www/permissions-reset-all-postgresql.xql 13 Sep 2001 20:27:19 -0000 1.1
@@ -0,0 +1,28 @@
+
+
+
+ postgresql7.1
+
+
+
+
+select
+ bookmark_id, local_title
+from
+ bm_bookmarks
+where
+ tree_sortkey like
+ (
+ select tree_sortkey || '%'
+ from bm_bookmarks
+ where bookmark_id = :root_folder_id
+ )
+ order by tree_sortkey
+and
+ acs_permission__permission_p(bookmark_id, acs__magic_object_id('registered_users'), 'read') <> :public_p
+
+
+
+
+
+