Index: openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl,v diff -u -r1.90.2.4 -r1.90.2.5 --- openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl 19 Apr 2006 21:52:58 -0000 1.90.2.4 +++ openacs-4/packages/dotlrn-fs/tcl/dotlrn-fs-procs.tcl 18 May 2006 11:07:10 -0000 1.90.2.5 @@ -73,7 +73,11 @@ set node_id [site_node::get_node_id_from_object_id -object_id $package_id] site_node_object_map::new -object_id $folder_id -node_id $node_id - permission::set_not_inherit -object_id $folder_id + if {![parameter::get_from_package_key -package_key "dotlrn-fs" -parameter "InheritPermissionsForRootFolderP"]} { + permission::set_not_inherit -object_id $folder_id + } else { + permission::set_inherit -object_id $folder_id + } set party_id [acs_magic_object registered_users] permission::grant -party_id $party_id -object_id $folder_id -privilege read @@ -108,8 +112,13 @@ set node_id [site_node::get_node_id_from_object_id -object_id $package_id] site_node_object_map::new -object_id $folder_id -node_id $node_id - permission::set_not_inherit -object_id $folder_id + if {![parameter::get_from_package_key -package_key "dotlrn-fs" -parameter "InheritPermissionsForRootFolderP"]} { + permission::set_not_inherit -object_id $folder_id + } else { + permission::set_inherit -object_id $folder_id + } + # Set up permissions on these folders # The root folder is available only to community members set members [dotlrn_community::get_rel_segment_id \