Forum .LRN Q&A: Public folder of communities

Collapse
Posted by Malte Sussdorff on
How can I make the public folder of communities writeable to all users in the community?

I need this functionality for all communities already created and those that will be created in the future.

Not sure if there is a parameter in .LRN / File Storage for this.

Collapse
Posted by Dave Bauer on
Malte

Check dotlrn-fs package which sets up the file storage under a dotlrn class or community. It revokes the permissions so you'll have to disable that. Perhaps a dotlrn system wide parameter would make sense for the default for new communities.

You'll have to write a tcl or pl/sql procedure to update the permissions on the existing folders.

Collapse
Posted by Malte Sussdorff on
Okay, I added this myself. For the old communities I did this:

db_foreach communities {select community_id from dotlrn_communities} {
set members [dotlrn_community::get_rel_segment_id -community_id $community_id -rel_type dotlrn_member_rel]

set public_folder_id [dotlrn_fs::get_community_shared_folder -community_id $community_id]

permission::grant -party_id $members -object_id $public_folder_id -privilege write
}

Collapse
Posted by Dave Bauer on
Malte,

I just had an idea :) To set this parameter you'd customize your install.xml to change the default for dotlrn-fs instances.