This change should fix the library check for all items, even items that belong to the library but is not located physically inside the same directory as the root of the library.
I've tested that the top level parents are indeed the media folders, and also had @kattjevfel test the changes before I submitted this PR.
This change should fix the library check for all items, even items that belong to the library but is not located physically inside the same directory as the root of the library.
I've tested that the top level parents are indeed the media folders, and also had @kattjevfel test the changes before I submitted this PR.