The folks at Akoonah Byron Bay Accommodation were ready to update the look of their website and have it be mobile responsive, involving custom blocks and a new availability calendar.
Permissions for files without a set in Concrete5
Concrete5 community member BlueFractals asked:
In Dashboard > File Manager, is there a way to prevent specific users or group from accessing 'Files in no sets'?
After digging through the advanced permissions I discovered it wasn't possible; permissions are assigned to file sets and not files themselves.
Let's fight fire with fire and assign set-less files to a set!
Manually assigning files to a set1 defeats the purpose of them being set-less, thankfully we can automate this by extending the events below along with a new fileset named 'Setless'.
Add file to 'Setless'.
If file is in multiple sets and 'Setless' is one of them, remove from 'Setless'.
If file is no longer in any sets, add to 'Setless'.
If you would like to take a closer look at the code or use it on one of your Concrete5 sites, I've made a packaged version on GitHub. View the 5.6 branch if you have a legacy 5.6 site, otherwise stick to the Master branch.
Update 1: Updated for 5.7+