I took a look through the code in mod/folder but wasn't able to pinpoint the line to modify.
Does editing the student role to give them permission 'mod/folder:managefiles' not work? (Site admin > Users > Permissions > Define roles, click on 'Student' then 'Edit')
This could then be overridden for a particular course or folder where this wasn't wanted.
This should all be possible without touching any Moodle code.
Ah, yes, you're right, thanks.
I have just tried to edit the student role to have access to a specific Folder in a specific Course. But It seems like I can't do that? Do you have any ideas what to do?
Moodle-Team Niels Brock, DK
Students should already have access to folders added to courses...but normally you can click on the activity/resource and then go to permissions from the activity/resource admin menu and set it there.