Resolve "sub folders of hiddenfolders are not accessible", fixes #464
This PR meant to be a workaround for #464 (closed). How it works
- in
CoursewareFolderChoosercomponent, the subfolders of hiddenfolders are not displayed anymore, using new function calledvalidateParentFolder - using a new mixin called
block-folder-validator-mixin, which contains the required functions to validate folders accessibility in component level:
-
validateFolderAccessibilityfunction gets the folder id and loads the folder and checks its parents (recursively) - when validation is done, it sets the value of
showInvalidFolderMessage.
- on component level using the mixin,
validateFolderAccessibilityis called in watcher of either folder or file variables. - in each related component an error messagebox is introduced to display the error when exists!
Edited by Farbod Zamani