Ability to hide a folder while allowing access to files inside it
Description
Attachments
- 11 Dec 2012, 01:07 PM
- 09 Nov 2012, 03:10 AM
- 25 Oct 2012, 12:29 AM
- 25 Oct 2012, 12:29 AM
- 25 Oct 2012, 12:29 AM
incorporates
is depended on by
is related to
Activity
Aaron Zeckoski December 12, 2012 at 6:16 AM
Yes, and that needs to be a new JIRA as well. Please link it to this one and assign it to me and I will review it.
Juanjo Meroño December 12, 2012 at 5:27 AM
Perfect !! But, this feature requires another patch in content-tool in order to be able to add and remove the new property PROP_HIDDEN_WITH_ACCESSIBLE_CONTENT.
I will take what is needed from the samoo patch (SAK-7814-content.patch) and create a new one compatible with kernel patch, agree?
Hudson CI Server December 11, 2012 at 2:17 PM
Integrated in kernel-trunk #574 (See http://builds.sakaiproject.org:8080/job/kernel-trunk/574/)
https://sakaiproject.atlassian.net/browse/KNL-999#icft=KNL-999 Ability to hide a folder while allowing access to files inside it
Patches from Juan José Meroño Sánchez (UM.es) and tweaks by AZ (Unicon) (Revision 117590)
Result = SUCCESS
Aaron Zeckoski December 11, 2012 at 1:07 PM
Here is the patch as applied (only KNL-999.patch.txt). I made a few minor tweaks but overall I think it looked fine.
Someone can test things out and see if this is working as expected and probably would be a good idea to have the original patch writer review things.
Juanjo Meroño November 9, 2012 at 3:10 AM
I'm the one who wrote the kernel patch wich you're talking about. I realized that my patch is not available in jira (so I added), probably because is a partial patch (only the kernel part, content patch is also needed to manage the new folder property), but I thought you might need it to compare and choose the best solution.
What I've basically done is convert "isAvailable" method from recursive to an iterative strategy, because I need to know if the parent is really hidden, or if it was only hidden for web purposes. Probably you know much more than I know about resources. I think that this could be a good solution, what do you think?
In some cases it may be desirable to hide a folder, while still making files inside it accessible.
For example, a course site owner may wish to include various images in the Wiki, but doesn't want a 'WikiImages' folder visible to students browsing the site.
Folders (optionally files) should therefore have an attribute which can be set by someone with appropriate permissions on the folder, viz. 'Hidden'. Hidden folders are displayed to users who have update permissions on the folder, but are not displayed to users who have read-only access.