Index: openacs-4/packages/wp-slim/www/index-oracle.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/wp-slim/www/index-oracle.xql,v diff -u -r1.1 -r1.1.2.1 --- openacs-4/packages/wp-slim/www/index-oracle.xql 4 Oct 2001 04:23:13 -0000 1.1 +++ openacs-4/packages/wp-slim/www/index-oracle.xql 10 Mar 2002 00:05:05 -0000 1.1.2.1 @@ -16,6 +16,7 @@ and ao.object_id = i.item_id and ao.creation_user = p.person_id and pres.public_p = 't' + and ao.context_id = :package_id @@ -31,6 +32,7 @@ where i.live_revision = p.presentation_id and ao.object_id = i.item_id and ao.creation_user = :user_id + and ao.context_id = :package_id @@ -51,6 +53,7 @@ and ao.creation_user <> :user_id and ao.creation_user = p.person_id and acs_permission.permission_p(i.item_id, :user_id, 'wp_view_presentation') = 't' + and ao.context_id = :package_id Index: openacs-4/packages/wp-slim/www/index-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/wp-slim/www/index-postgresql.xql,v diff -u -r1.1 -r1.1.2.1 --- openacs-4/packages/wp-slim/www/index-postgresql.xql 4 Oct 2001 04:23:13 -0000 1.1 +++ openacs-4/packages/wp-slim/www/index-postgresql.xql 10 Mar 2002 00:05:05 -0000 1.1.2.1 @@ -16,6 +16,7 @@ and ao.object_id = i.item_id and ao.creation_user = p.person_id and pres.public_p = 't' + and ao.context_id = :package_id @@ -31,6 +32,7 @@ where i.live_revision = p.presentation_id and ao.object_id = i.item_id and ao.creation_user = :user_id + and ao.context_id = :package_id @@ -51,6 +53,7 @@ and ao.creation_user <> :user_id and ao.creation_user = p.person_id and acs_permission__permission_p(i.item_id, :user_id, 'wp_view_presentation') = 't' + and ao.context_id = :package_id Index: openacs-4/packages/wp-slim/www/users.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/wp-slim/www/users.tcl,v diff -u -r1.1.1.1 -r1.1.1.1.2.1 --- openacs-4/packages/wp-slim/www/users.tcl 20 Apr 2001 20:51:24 -0000 1.1.1.1 +++ openacs-4/packages/wp-slim/www/users.tcl 10 Mar 2002 00:05:05 -0000 1.1.1.1.2.1 @@ -13,6 +13,7 @@ users:multirow } +set package_id [ad_conn package_id] # Right now this file is weak. It should link the username to a one-user page which shows # What presentations that users has created (but only if the current user has permission to see/view @@ -27,6 +28,7 @@ and o.object_id = i.item_id and p.person_id = o.creation_user and parties.party_id = p.person_id + and o.context_id = :package_id group by p.person_id, p.first_names, p.last_name, parties.email } Index: openacs-4/packages/wp-slim/www/users.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/wp-slim/www/users.xql,v diff -u -r1.1 -r1.1.2.1 --- openacs-4/packages/wp-slim/www/users.xql 4 Oct 2001 04:29:01 -0000 1.1 +++ openacs-4/packages/wp-slim/www/users.xql 10 Mar 2002 00:05:05 -0000 1.1.2.1 @@ -10,6 +10,7 @@ and o.object_id = i.item_id and p.person_id = o.creation_user and parties.party_id = p.person_id + and o.context_id = :package_id group by p.person_id, p.first_names, p.last_name, parties.email