Index: openacs-4/packages/photo-album/www/album.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/photo-album/www/album.xql,v diff -u -r1.1 -r1.2 --- openacs-4/packages/photo-album/www/album.xql 10 Jun 2003 10:07:11 -0000 1.1 +++ openacs-4/packages/photo-album/www/album.xql 12 Jun 2003 06:55:45 -0000 1.2 @@ -22,25 +22,5 @@ - - -select cr.title, - cr.description, - pa.story, - ci.parent_id as parent_folder_id, - case when acs_permission__permission_p(ci.item_id, :user_id, 'admin') = 't' then 1 else 0 end as admin_p, - case when acs_permission__permission_p(ci.item_id, :user_id, 'pa_create_photo') = 't' then 1 else 0 end as photo_p, - case when acs_permission__permission_p(ci.item_id, :user_id, 'write') ='t' then 1 else 0 end as write_p, - case when acs_permission__permission_p(ci.parent_id, :user_id, 'write') = 't' then 1 else 0 end as folder_write_p, - case when acs_permission__permission_p(ci.item_id, :user_id, 'delete') = 't' then 1 else 0 end as album_delete_p -from cr_items ci, - cr_revisions cr, - pa_albums pa -where ci.live_revision = cr.revision_id - and ci.live_revision = pa_album_id - and ci.item_id = :album_id - - -