When the Resources tool is made invisible to students ("special hidden"), and a Resources folder is added to Lessons using this new feature, the contents of the folder cannot be viewed by the student in Lessons. This is inconsistent with the existing "Add Content Links" feature in Lessons – which lets instructors create a link to a file in Resources, and that file is available to students, even if Resources is special hidden. See attached screenshots.
These two Lessons features should treat "special hidden" Resources folders and files the same. From a T&L perspective, it's desirable to hide Resources on the course menu but still allow students access to selected Resources folders and files via Lessons.
So it looks like in the code for isAvailable, there's a while loop that goes up the collection tree and keeps any items hidden that are nested. This also applies top level properties for a collection on it's children with no way to override.
I think we'd have to make this "special" property not inherit to the child folders.
This new feature in https://sakaiproject.atlassian.net/browse/SAK-32127#icft=SAK-32127 hides the top level resource folder (but allows access to the contents) if the tool is hidden. However with the feature in https://sakaiproject.atlassian.net/browse/LSNBLDR-542#icft=LSNBLDR-542 it appears as if it makes the folders inaccessible. It seems like the interior folders should be accessible the same as the files.
I'm not entirely sure what the cause of this is or what the fix for this is, I'm just filing this as a noted issue on SAK-32127.
@Karen McPhaul comment on that ticket about this
Nightly experimental has a new feature that allows instructors to "Add Resources Folder" to a Lessons page (see https://sakaiproject.atlassian.net/browse/LSNBLDR-542#icft=LSNBLDR-542).
When the Resources tool is made invisible to students ("special hidden"), and a Resources folder is added to Lessons using this new feature, the contents of the folder cannot be viewed by the student in Lessons. This is inconsistent with the existing "Add Content Links" feature in Lessons – which lets instructors create a link to a file in Resources, and that file is available to students, even if Resources is special hidden. See attached screenshots.
These two Lessons features should treat "special hidden" Resources folders and files the same. From a T&L perspective, it's desirable to hide Resources on the course menu but still allow students access to selected Resources folders and files via Lessons.