daveb
committed
on 15 May 09
Remove zoom plugin. Fix permissions on file plugin on xinha
openacs-4/.../acs-subsite/www/file.vuh (+28 -23)
29 29         if {![permission::permission_p \
30 30                   -object_id $object_id \
31 31                   -privilege "read" \
32 32                   -party_id [ad_conn user_id]]} {
33 33             # if you don't have permission to see it, it doesn't exist
34 34             ns_returnnotfound
35 35             ad_script_abort
36 36         }
37 37     } elseif {![permission::permission_p \
38 38                     -privilege "read" \
39 39                     -object_id $private_parent_id \
40 40                     -party_id [ad_conn user_id]]} {
41 41         ns_returnnotfound
42 42         ad_script_abort
43 43     } else {
44 44         permission::require_permission \
45 45             -privilege "read" \
46 46             -object_id $object_id \
47 47             -party_id [ad_conn user_id]
48 48     }
  49 } else {
  50     permission::require_permission \
  51         -privilege "read" \
  52         -object_id $object_id \
  53         -party_id [ad_conn user_id]
49 54 }
50 55
51 56 # find a cr_item and serve it
52 57
53 58 cr_write_content -item_id $object_id